⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simple.h

📁 C++高级编程这本书所附的源代码
💻 H
字号:
/**
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -