?? obj.hh
字號:
# ifndef Obj_hh# define Obj_hh Obj_hhclass Obj {public: // Constructors/Destructors Obj(); Obj(int val); // Accessors inline const int & getVal() const; // Input/Output // Miscellaneousprotected: // Accessors inline void setVal(const int & val); // Methods private: // Accessors inline int & val(); // Methods // State int _val;};const int & Obj::getVal() const { return _val; }void Obj::setVal(const int & val) { _val = val; }int & Obj::val() { return _val; }# endif // Obj_hh
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -