hour08_1b.hpp

来自「《24学时精通c++》的随书源码的下半部分。欢迎下载学习。」· HPP 代码 · 共 17 行

HPP
17
字号
 // Begin point.hpp
 // you will need to rename this file to point.hpp

 class Point     // holds x,y coordinates
 {
     // no constructor, use default
 public:
     void SetX(int x) { itsX = x; }
     void SetY(int y) { itsY = y; }
     int GetX()const { return itsX;}
     int GetY()const { return itsY;}
 private:
     int itsX;
     int itsY;
 };// end of Point class declaration

 // end point.hpp

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?