Public paste
.exe example
By: .exe | Date: Oct 2 2007 19:21 | Format: None | Expires: never | Size: 1.2 KB | Hits: 1261

  1. Testing object declaration and initialization
  2.  
  3. Declaring an object of type extclockType (initialized to 01:01:01 ET)
  4. Declaring an object of type extclockType (not initialized)
  5. Declaring an object of type clockType (initialized to 12:00:00)
  6.  
  7. Testing insertion operator overloading
  8.  
  9. Content of first object of type extclockType: 01:01:01 ET
  10. Content of second object of type extclockType: 00:00:00 CT
  11.  
  12. Testing printTime() from clockType
  13.  
  14. Content of the object of type clockType: 12:00:00
  15.  
  16. Testing extraction operator and increment operators
  17.  
  18. Enter a time (HH:MM:SS TZ): 05:06:00 CT
  19. Showing time while using postincrement 05:06:00 CT
  20. Showing time after postincrement 05:06:01 CT
  21. Showing time while using preincrement 05:06:02 CT
  22. Showing time after preincrement 05:06:02 CT
  23.  
  24. Testing addition and comparison of two times
  25. Enter 2 times (HH:MM:SS TZ): 05:06:00 Ct
  26. 06:05:00 ET
  27. You entered 05:06:00 CT and 06:05:00 ET
  28.  
  29. The time zones are different; the times cannot be added!
  30.  
  31. The addition is 00:00:00 NT
  32.  
  33. They are not equal
  34.  
  35. Testing getTime from clockType to get data from the second time entered
  36.  
  37. Showing content of second object retrieved with getTime(): 6:5:0
  38.  
  39. Press any key to continue . . .