home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / m / mar93.zip / 1103102B < prev    next >
Text File  |  1993-01-05  |  448b  |  25 lines

  1. // tdate8.cpp:
  2.  
  3. #include <iostream.h>
  4. #include "date8.h"
  5.  
  6. main()
  7. {
  8.     Date today, d2;
  9.     cout << "Today's date is " << today << endl;
  10.     cout << "Enter another date: ";
  11.     cin >> d2;
  12.     cout << "today - d2 = " << today - d2 << endl;
  13.     cout << "d2 - today = " << d2 - today << endl;
  14.     return 0;
  15. }
  16.  
  17. /* OUTPUT
  18.  
  19. Today's date is 12/12/1992
  20. Enter another date: 1/1/1970
  21. today - d2 = 11/11/22
  22. d2 - today = -11/-11/-22
  23. */
  24.  
  25.