#include <iostream>
using namespace std;
class Rect
{
private:
int width;
int height;
public:
void init(int w,int h)
{
width=w;
height=h;
}
int set_w(int w)
{
cin >> w;
return w;
}
int set_h(int h)
{
cin >> h;
return h;
}
void show()
{
cout << "面积" << width * height <<"平方厘米" << endl;
}
};
int main()
{
int width,heigh;
cout << "请输入长度和高度(CM)" << endl;
cin >> width;
cin >> heigh;
Rect sin;
sin.init(width,heigh);
sin.show();
cout << "请输入要修改的长度(CM)" << endl;
cin >> width;
cout << "请输入要修改的高度(CM)" << endl;
cin >> heigh;
sin.init(width,heigh);
sin.show();
return 0;
}