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

This is a discussion on Help! I need to know how to use the system date! within the C++ Programming forums, part of the General Programming Boards category; Here's the deal. My final in C++ is tomorrow, december 17, and My test is to write a program that ...

  1. #1
    Unregistered
    Guest

    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
    Posts
    66
    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

    Ryan

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, 09:57 AM
  2. Getting system Date
    By Sridar in forum C++ Programming
    Replies: 4
    Last Post: 08-10-2005, 09:51 PM
  3. bad system date
    By Silvercord in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 04-30-2003, 09: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, 07:03 PM

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