摘要:
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 ... 阅读全文
posted @ 2015-10-24 19:30
爱读书de小学生
阅读(1045)
评论(0)
推荐(0)
摘要:
#include using namespace std;class Parent{public: /* 此类父类写出了一个有参的构造函数 这子类必须写出构造函数*/ Parent(int a,int b){ x=a; y=b; c... 阅读全文
posted @ 2015-10-24 16:55
爱读书de小学生
阅读(3002)
评论(0)
推荐(0)

浙公网安备 33010602011771号