// classes example
#include <iostream>
usingnamespace std;
class CRectangle {
int x, y;
public:
void set_values (int,int);
int area () {return (x*y);}
};
void CRectangle::set_values (int a, int b) {
x = a;
y = b;
}
int main () {
CRectangle rect;
rect.set_values (3,4);
cout << "area: " << rect.area();
return 0;
}
due to my lake of expierience i have hard time to understand why it should be there...
pls notice that there is no "}" only "{" i mean this symbol doesnt represent range of values
of some type?