Hello all,
I'm trying to learn C++ but get an error every time I try to execute from the 
console.
I can make the exact same file in K-Develop and it executes OK, what could be 
wrong?
I've included the simple "Hello World " file and the error message I'm 
getting.

#include <iostream.h>
int main()
{
cout << "Hello World\n";
return EXIT_SUCCESS;
}


ERROR MESSAGE
[ken@spooky Desktop]$ ./hello.cpp
./hello.cpp: line 2: syntax error near unexpected token `main()'
./hello.cpp: line 2: `int main()'

Thanks for the help,
-- 

Ken Thompson, North West Antique Autos
Payette, Idaho
Email: [EMAIL PROTECTED]
http://www.nwaa.com
Sales and brokering of antique autos and parts.

Linux- Coming Soon To A Desktop Near You
Registered Linux User #183936


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to