C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-04-2003, 09:19 PM   #1
Registered User
 
Join Date: Nov 2003
Posts: 1
Exclamation write a program that will set the time to 5:58

Hi anybody!

please help me!! i'm doing a project that focuses on time... i'm trying to figure out how to write a program that will set the time to 5:58 and have the "alarm" go off at 6;00. i absolutely can't figure out how to get the time setting to work!
thanks,
jupimako
jupimako is offline   Reply With Quote
Old 11-05-2003, 01:49 AM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
Which operating system and compiler.

Setting the time is an admin level operation on some systems for example
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 11-05-2003, 03:51 AM   #3
mustang benny
 
bennyandthejets's Avatar
 
Join Date: Jul 2002
Posts: 1,401
If you're using windows: SetSystemTime()
__________________
benforbes@optusnet.com.au
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro

Code Tags
Programming FAQ
Tutorials
bennyandthejets is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending an email in C program Moony C Programming 28 10-19-2006 10:42 AM
Read and set\change system time Hexxx C++ Programming 9 01-02-2006 07:11 AM
OpenGL Window Morgul Game Programming 1 05-15-2005 12:34 PM
Game Programming FAQ TechWins Game Programming 5 09-29-2004 02:00 AM
Help Write This Program Plz Unregistered C++ Programming 3 10-13-2001 01:08 AM


All times are GMT -6. The time now is 11:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22