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

📄 point2.h.bak

📁 用三个类来研究类的继承!类Point、Circle、Cylinder
💻 BAK
字号:
//point2.h
//类Point的定义

#ifndef point2_h
#define point2_h

class Point{
	friend ostream &operator<< (ostream &output, const Point &);
public:
	Point(float=0, float=0);	//默认构造函数
	void setPoint(float, float);		//设置坐标值
	float getX() const {return x;}	//读取x坐标的值
	float getY() const {return y;}	//读取y坐标的值
protected:	//可被派生类访问
	float x;	
	float x;
};

#endif

⌨️ 快捷键说明

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