Thread: Date and Time

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    29
    Retrieve the date of all inputted characters.

    Example: a
    26-11-2004:11:50:10 // WIll not appear, it only appears at the end
    of the program
    b
    26-11-2004:11:50:20 // " "

    g
    26-11-2004:11:51:02 // " "

    My program just retrieve the last date: 26-11-2004:11:51:02

    I want that it retrieves the 3 datas.

    Output: 26-11-2004:11:50:10
    26-11-2004:11:50:20
    26-11-2004:11:51:02

  2. #2
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    How about when you receive input via a function, soon as you get the character, input, etc, then you use date() or use some other os specific function for more specific times.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Advancing day by day until it matches a second date
    By nhubred in forum C++ Programming
    Replies: 1
    Last Post: 05-30-2009, 08:55 AM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. How to get and set windows time and date
    By huwan in forum Windows Programming
    Replies: 18
    Last Post: 05-13-2008, 10:33 AM
  4. Sending an email in C program
    By Moony in forum C Programming
    Replies: 28
    Last Post: 10-19-2006, 10:42 AM