simple.h
来自「C++高级编程这本书所附的源代码」· C头文件 代码 · 共 35 行
H
35 行
/**
* Simple.h
*
* A simple class that illustrates class definition syntax.
*
*/
#ifndef _simple_h_
#define _simple_h_
class Simple {
public:
Simple(); // Constructor
virtual ~Simple(); // Destructor
virtual void publicMethod(); // Public method
int mPublicInteger; // Public data member
protected:
int mProtectedInteger; // Protected data member
private:
int mPrivateInteger; // Private data member
static const int mConstant = 2; // Private constant
static int sStaticInt; // Private static data member
// disallow assignment and pass-by-value
Simple(const Simple& src);
Simple& operator=(const Simple& rhs);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?