time2.h
来自「经典vc教程的例子程序」· C头文件 代码 · 共 25 行
H
25 行
// Fig. 6.8: time2.h
// Declaration of the Time class.
// Member functions are defined in time2.cpp
// preprocessor directives that
// prevent multiple inclusions of header file
#ifndef TIME2_H
#define TIME2_H
// Time abstract data type definition
class Time {
public:
Time( int = 0, int = 0, int = 0 ); // default constructor
void setTime( int, int, int ); // set hour, minute, second
void printMilitary(); // print military time format
void printStandard(); // print standard time format
private:
int hour; // 0 - 23
int minute; // 0 - 59
int second; // 0 - 59
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?