Hi,
I'm new on gcc on linux. I tried a C program with class, but I got errors. Example:
class rect{
int x,y;
set_values(int, int);
int area (void) { return(x*y); };
}
and I get:
error: parse error before "rect"
error: syntax error before '{' token
... and others.
does gcc support OOP?
Danke.
I'm new on gcc on linux. I tried a C program with class, but I got errors. Example:
class rect{
int x,y;
set_values(int, int);
int area (void) { return(x*y); };
}
and I get:
error: parse error before "rect"
error: syntax error before '{' token
... and others.
does gcc support OOP?
Danke.