write a program that will set the time to 5:58

This is a discussion on write a program that will set the time to 5:58 within the C++ Programming forums, part of the General Programming Boards category; Hi anybody! please help me!! i'm doing a project that focuses on time... i'm trying to figure out how to ...

  1. #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

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,849
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #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

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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