摘要: #include<iostream>#include<cmath>using namespace std;class Point{ private: double x; double y; double z; public: Point(double a,double b,double c):x(a 阅读全文
posted @ 2023-05-23 09:26 不会JAVA的小袁 阅读(10) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;class Horse{ public: Horse(){ cout<<"Horse 申请了空间..."<<endl; } virtual void Fly(){ cout<<"Just a horse."<<endl; } 阅读全文
posted @ 2023-05-23 09:08 不会JAVA的小袁 阅读(14) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <iomanip>using namespace std;class Shape{ public: const double PI; Shape():PI(3.1415926){ } virtual double Area()=0;};clas 阅读全文
posted @ 2023-05-23 08:51 不会JAVA的小袁 阅读(15) 评论(0) 推荐(0) 编辑