原来的代码:
void test01() {
Cube c1(3, 6, 9);
Cube c2(13, 16, 19);
int area = c1.getArea();
cout << "立方体的表面积是:" << area << endl;
int volume = c1.getVolume()
原来的代码:
void test01() {
Cube c1(3, 6, 9);
Cube c2(13, 16, 19);
int area = c1.getArea();
cout << "立方体的表面积是:" << area << endl;
int volume = c1.getVolume()