obj.hh
来自「C++作业」· HH 代码 · 共 40 行
HH
40 行
# 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 + =
减小字号Ctrl + -
显示快捷键?