摘要:
1 #include 2 #include 3 using namespace std; 4 class Box 5 { 6 public: 7 void setWidth(double width){ 8 this->width=width; 9 }10 ... 阅读全文
摘要:
#include using namespace std;class Parent{public: /* 此类父类写出了一个有参的构造函数 这子类必须写出构造函数*/ Parent(int a,int b){ x=a; y=b; c... 阅读全文