柚丶子sky吧 关注:1贴子:129
  • 0回复贴,共1
#include<iostream>
#include<cmath>
using namespace std;
class rect
{double length;
double width;
public :
void setrect(){cin>>length;cin>>width;}
void area(){cout<<length*width;}
};
int main()
{rect A;
A.setrect();
A.area();
}


IP属地:黑龙江1楼2017-03-09 16:17回复