Wednesday, January 02, 2008

Interesting

Interesting thought...

test.c

#include

class myClass

{

private:

public:

myClass( );

};

int main()

{

printf("Bye world\n");

}


Now I want to compile test.c file using gcc compiler,

gcc test.c

test.c:: error: iostream.h: No such file or directory

test.c:: error: parse error before 'myClass'

test.c:: error: syntax error before '{' token

test.c:: error: parse error before '}' token

How to achieve this...

Rahul is it possible... Any idea....

Satish