類の運用(一)
#include
using namespace std;
class Dog{
public:
Dog(int Age,int Weight); //
Dog(Dog&gou); //
int setAge(int Age);
int setWeight(int Weight);
int getAge();
int getWeight();
~Dog(){
cout<>age>>weight;
dog.setAge(age);
dog.setWeight(weight);
cout<