求大神解答!!很急
#include<iostream>
using namespace std;
class rectangel{
public:
void rectangel(int l,int w){length=l;width=w;} //编辑器显示这条错误,为什么啊???
int area(){return length*width;}
private:
int length;
int width;
};
int main(){
rectangel a(3,4);
cout<<"长方形的面积为"<<a.area()<<endl;
return 0;
}