displayobject.h
来自「C++参考书」· C头文件 代码 · 共 24 行
H
24 行
#ifndef DISPLAYOBJECT_H
#define DISPLAYOBJECT_H
#include <iostream>
#include <ctime>
using namespace std ;
class DisplayObject
{
public:
void reportTime( void )
{ cout << "Obj constructed: " << ctime( &tm ) ; }
protected:
DisplayObject( void )
{ tm = time( NULL ) ; }
private:
time_t tm ;
} ;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?