Thread: interacting with time.h

  1. #1
    Registered User Clayg's Avatar
    Join Date
    Nov 2011
    Location
    Hawaii
    Posts
    20

    interacting with time.h

    I just finished my final. The hardest part was making an alarm clock. The best I could do was a count down using wait(i). i being the total of seconds from the hours, minutes, and seconds entered by user. I couldn't even how to refreshf local time after using it once in the program... I think I passed the class(but probably not the final). I am in this for the knowledge and need to know for me, are there any tutorials on interacting with tme? For example I simply wanted a (hh:mm == current time) where hh and mm would be the variables entered by end user. then after alarm, have a fresh local time. I would appreciate any info to check out, and thanks people.
    I wonder how many years I will wander the streets of code until I realize where I am.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Have a look at boost's time/date library.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Interacting with USB device
    By AKalair in forum C Programming
    Replies: 2
    Last Post: 02-20-2008, 02:07 PM
  2. Interacting with Shell
    By INT19h in forum C Programming
    Replies: 3
    Last Post: 10-08-2005, 01:03 AM
  3. Interacting with MySQL from C++
    By Lionel in forum Windows Programming
    Replies: 1
    Last Post: 08-19-2005, 09:08 AM
  4. interacting with a website
    By md4u in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 03:36 PM
  5. Add user without interacting.
    By zahid in forum Linux Programming
    Replies: 3
    Last Post: 12-21-2002, 11:36 PM