Mail Archives: djgpp/1998/01/13/19:17:12
HackerOC3 wrote:
>
> printf("y value?");
> int y;
> scanf(" %d", &y);
> printf("c value?");
> int c;
> scanf(" %d", &c);
>
> what's wrong there? "Parse error before int"
> what gives????!!!!!
>
> HackerOC3 AT aol DOT com
You're probably compiling this as C rather than C++. gcc selects the
compiler based on the extension: .c=C, .cc,.C,.cxx,.cpp=C++ etc. Note
that gcc is case sensitive (even though dos isn't). Give your file a
`.cc' extension, and (almost) everything will work nicely (including the
debuggers, there are some problems with gcc and other extensions when it
comes to debugging).
Bill
--
Leave others their otherness
- Raw text -