Problem Description
编写矩形类Rectangle,完善以下程序
//你的代码写在这里
int main()
{
Rectangle rectangle1;
cout << rectangle1.Area() << endl;
Rectangle rectangle2(1.2, 3.5);
cout << rectangle2.Area() << endl;
return 0;
}
Input Description
无
Output Description
输出2个长方形rectangle1、rectangle2的面积。
Sample Output
0
4.2
#include <iostream>
using namespace std;
class Rectangle
{
public