home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
m
/
mar93.zip
/
1103100C
< prev
next >
Wrap
Text File
|
1993-01-05
|
418b
|
28 lines
// tdate7.cpp:
#include <iostream.h>
#include "date7.h"
main()
{
Date d1, d2;
cout << "Enter a date: ";
cin >> d1;
cout << "Enter another date: ";
cin >> d2;
cout << "d1 - d2 = " << d1 - d2 << endl;
cout << "d2 - d1 = " << d2 - d1 << endl;
return 0;
}
/* OUTPUT
Enter a date: 10/1/1951
Enter another date: 5/1/1954
d1 - d2 = -7/0/-2
d2 - d1 = 7/0/2
*/