home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_03
/
1103102b
< prev
next >
Wrap
Text File
|
1993-01-05
|
448b
|
25 lines
// tdate8.cpp:
#include <iostream.h>
#include "date8.h"
main()
{
Date today, d2;
cout << "Today's date is " << today << endl;
cout << "Enter another date: ";
cin >> d2;
cout << "today - d2 = " << today - d2 << endl;
cout << "d2 - today = " << d2 - today << endl;
return 0;
}
/* OUTPUT
Today's date is 12/12/1992
Enter another date: 1/1/1970
today - d2 = 11/11/22
d2 - today = -11/-11/-22
*/