Say, does anyone know if ANSI C supports class like structures???
I'm trying to do a:
struct Complex
{
int num;
me(){printf("%d\n",6);}
};
and it keeps comming up with:
syntax error; found 'identifier' expecting '}'.
syntax error; found '{' expecting ';'.
syntax error; found 'string constant' expecting ')'.
Missing prototype.
etc...etc...
Thanks.
I'm trying to do a:
struct Complex
{
int num;
me(){printf("%d\n",6);}
};
and it keeps comming up with:
syntax error; found 'identifier' expecting '}'.
syntax error; found '{' expecting ';'.
syntax error; found 'string constant' expecting ')'.
Missing prototype.
etc...etc...
Thanks.