摘要:
#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 阅读全文
摘要:
#include<iostream>using namespace std;class Horse{ public: Horse(){ cout<<"Horse 申请了空间..."<<endl; } virtual void Fly(){ cout<<"Just a horse."<<endl; } 阅读全文
摘要:
#include <iostream>#include <iomanip>using namespace std;class Shape{ public: const double PI; Shape():PI(3.1415926){ } virtual double Area()=0;};clas 阅读全文