- Testing object declaration and initialization
- Declaring an object of type extclockType (initialized to 01:01:01 ET)
- Declaring an object of type extclockType (not initialized)
- Declaring an object of type clockType (initialized to 12:00:00)
- Testing insertion operator overloading
- Content of first object of type extclockType: 01:01:01 ET
- Content of second object of type extclockType: 00:00:00 CT
- Testing printTime() from clockType
- Content of the object of type clockType: 12:00:00
- Testing extraction operator and increment operators
- Enter a time (HH:MM:SS TZ): 05:06:00 CT
- Showing time while using postincrement 05:06:00 CT
- Showing time after postincrement 05:06:01 CT
- Showing time while using preincrement 05:06:02 CT
- Showing time after preincrement 05:06:02 CT
- Testing addition and comparison of two times
- Enter 2 times (HH:MM:SS TZ): 05:06:00 Ct
- 06:05:00 ET
- You entered 05:06:00 CT and 06:05:00 ET
- The time zones are different; the times cannot be added!
- The addition is 00:00:00 NT
- They are not equal
- Testing getTime from clockType to get data from the second time entered
- Showing content of second object retrieved with getTime(): 6:5:0
- Press any key to continue . . .
.exe example
By: .exe | Date: Oct 2 2007 19:21 | Format: None | Expires: never | Size: 1.2 KB | Hits: 1259
Latest pastes
1 days ago
3 days ago
3 days ago
4 days ago
5 days ago