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

📄 7_1.cpp

📁 《C++语言程序设计(第2版)》例题程序
💻 CPP
字号:
//Begin of Rectangle.cpp
#include<iostream.h>
#include<math.h>
#include "rectangle.h"
void main()
{
	Rectangle rect;	//定义Rectangle类的对象
	rect.InitR(2,3,20,10);	//设置矩形的数据
	rect.Move(3,2);	//移动矩形位置
	cout<<"The data of rect(X,Y,W,H):"<<endl;
	cout<<rect.GetX()<<","	//输出矩形的特征参数
		<<rect.GetY()<<","
		<<rect.GetW()<<","
		<<rect.GetH()<<endl;
}
//End of Rectangle.cpp

⌨️ 快捷键说明

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