clock.h

来自「Since the field of object oriented progr」· C头文件 代码 · 共 21 行

H
21
字号
          // This is the game clock.  It increments once for every
          //  move, the increment being accomplished in the method
          //  named inc_and_print_time.

#ifndef CLOCK_H
#define CLOCK_H

class clock 
{
   int hour;
   int minute;
public:
   clock(void);
   int present_hour(void)    {return hour;}
   int present_minute(void)  {return minute;}
   void inc_and_print_time(void);
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?