01: /****************************************************************************
02: ** COPYRIGHT (C):    1998 Cay S. Horstmann. All Rights Reserved.
03: ** PROJECT:          Computing Concepts with C++ 2E
04: ** FILE:             time1.cpp
05: ** NOTE TO STUDENTS: This file has been edited to be compatible with older
06: ** compilers. If your compiler fully supports the ANSI/ISO C++
07: ** standard, remove the line #include "ccc_ansi.cpp". You can also remove
08: ** the lines #ifndef CCC_ANSI_H and #endif
09: ****************************************************************************/
10: 
11:
12:
13: 
14: #include <iostream>
15: 
16: using namespace std;
17: 
18:
19: 
20: #include "ccc_time.cpp"
21: 
22: int main()
23: {  
24:    Time wake_up(9, 0, 0);
25:    wake_up.add_seconds(1000); /*  a thousand seconds later */
26:    cout << wake_up.get_hours() << ":" << wake_up.get_minutes()
27:       << ":" << wake_up.get_seconds() << "\n";
28: 
29:    return 0;
30: }