摘要:
#include<iostream>#define PI 3.14using namespace std;class Shape{ public: Shape(){ cout<<"shape构造"<<endl; } virtual double getArea()=0; virtual double 阅读全文
posted @ 2023-04-21 20:24
不会JAVA的小袁
阅读(15)
评论(0)
推荐(0)
摘要:
#include<iostream>using namespace std;class Point{ public: Point(){ x=0; y=0; } Point(float x1,float y1){ x=x1; y=y1; } friend Point operator+(const P 阅读全文
posted @ 2023-04-21 19:54
不会JAVA的小袁
阅读(14)
评论(0)
推荐(0)
摘要:
#include<iostream>using namespace std;class BaseClass{ public: BaseClass(){ cout<<"construct BaseClass"<<endl; } ~BaseClass(){ cout<<"destruct BaseCla 阅读全文
posted @ 2023-04-21 19:35
不会JAVA的小袁
阅读(14)
评论(0)
推荐(0)