Thread: Help! I need to know how to use the system date!

  1. #1

    Question Help! I need to know how to use the system date!

    Here's the deal. My final in C++ is tomorrow, december 17, and My test is to write a program that will do what the check printers at wal-mart do when you just sign the check and they fill it in. I know how to do most of it, but the teacher told us to use the system date for the date, and he hasn't told us how to do that, and it isn't in our book. I need a cout statement that will display the system date.

    A very confused student

  2. #2
    Registered User
    Join Date
    Nov 2001
    Check it dude try this I think it works like this

    #ifdef __DATE__
    cout << __DATE__;

    if you are in class you know date is a macro you might wanna check your compiler to see if it has it though


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. calculate age from date
    By bazzano in forum C Programming
    Replies: 1
    Last Post: 08-22-2005, 08:57 AM
  2. Getting system Date
    By Sridar in forum C++ Programming
    Replies: 4
    Last Post: 08-10-2005, 08:51 PM
  3. bad system date
    By Silvercord in forum A Brief History of
    Replies: 1
    Last Post: 04-30-2003, 08:29 AM
  4. reading the system date
    By Alicia in forum C++ Programming
    Replies: 5
    Last Post: 02-13-2002, 03:18 PM
  5. System Date
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 08-28-2001, 06:03 PM