السلام عليكم
عندي سوال اطلع error في الكود التالي
#include <iostream>
using std::cout;
class CRectangle {
int left;
int top;
int right;
int bottom;
public:
void SetCRectangle(int l, int t, int r, int b)
{left=l; top=t; right=r; bottom=b;}
Area()
{
return (right-left) * (top - bottom);}
}
int main()
{
CRectangle R1;
SetCRectangle(4,6,7,2)
R1.left=9;
cout << R1.Area();
return 0;
}