clock.h
来自「这是一个模拟电梯的程序」· C头文件 代码 · 共 18 行
H
18 行
//Clock class definition
#ifndef CLOCK_H
#define CLOCK_H
class Clock{
public:
Clock(); //constructor
~Clock(); //destructor
void tick(); //increment clock by one second
int getTime() const; //returns clock's current time
private:
int time; //clock's time
};//end class Clock
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?