说明: #include"iostream" using namespace std; class Dog { public: Dog(int Age=0,int Weight=0); int GetAge() { return age; } int GetWeight() { return weight; } private: int age,weight; }; Dog::Dog(int Age,int Weight) { age=Age; weight=Weight; } int main()
<wj453155304> 上传 | 大小:360byte