When i type in correct code and syntax and compile it, the compiler tells me that theres syntax and parse errors! What's wrong?![]()
This is a discussion on Syntax Error??? within the C++ Programming forums, part of the General Programming Boards category; When i type in correct code and syntax and compile it, the compiler tells me that theres syntax and parse ...
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.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way
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?