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

📄 7_1.cpp

📁 c++语言程序设计课后答案(清华大学郑莉) 包括清华大学 上课讲义 例子源码等等
💻 CPP
字号:
//7_1.cpp
#include<iostream>
#include<cmath>
#include "rectangle.h"
using namespace std;
int 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 7_1.cpp

⌨️ 快捷键说明

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