When i type in correct code and syntax and compile it, the compiler tells me that theres syntax and parse errors! What's wrong?
When i type in correct code and syntax and compile it, the compiler tells me that theres syntax and parse errors! What's wrong?
You need to provide an example.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
how bout a simple console app like this:
there was a syntax error with '{' right after the main functionCode:#include <iostream> using namespace std; int main(); { cout<<"Hello!"; cin.get; }
Last edited by Maerus; 07-03-2005 at 12:19 AM.
>how bout a simple console app like this:
>int main();
How bout what's with the semicolon?
heh, oops, common mistake!
Last edited by Maerus; 07-03-2005 at 12:27 AM.
Also it is cin.get() not cin.get.
Woop?