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

📄 f1005.cpp

📁 it is a usefull thing
💻 CPP
字号:
//=====================================
// f1005.cpp
// compose or inheritant
//=====================================
#include"circle_compos.h"       // or #include"circle_inher.h"
#include<iostream>
using namespace std;
//-------------------------------------
int main(){
  Point a(2.3, 5.6);
  Circle c(a, 7);
  c.moveTo(1, 2);
  c.modifyRadius(3);
  cout<<"The radius is "<<c.getRadius()<<"\n";
  cout<<"The point is "<<c.getPoint();
  cout<<"The area is "<<c.getArea()<<"\n";
  cout<<"The circumference is "<<c.getCircum()<<"\n";
}//====================================

 

⌨️ 快捷键说明

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