06-15-2011, 08:05 AM
(06-14-2011, 09:50 PM)USN Wrote: I like C++ better because its just so simple.
Example:
That is a program right thereCode:#include <iosteam>
using namespace std;
int main ()
{
<<" C++ is so easy...duh :)\n";
<<" SupportForums.Net";
}
..You butchered that simple program.
Quote:Line 18: error: iosteam: No such file or directory
In function 'int main()':
Line 5: error: expected primary-expression before '<<' token
compilation terminated due to -Wfatal-errors.
First, you forgot to specify your stream operator. i.e cout.
Second of all, you forgot to return a value in main().
I suggest you learn C++ before you attempt to code in it.