Re: What I'm I doing wrong?
Your code looks OK, I really don't see the problem. :huh: Try putting the end curly on the next line like this:
Code:
// hello world program
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
If that doesn't work, it may not be the code's fault but something else.
Good luck learning by the way, I'm learning it too (and having a tough time in class).
Re: What I'm I doing wrong?
:gah2: That didn't work.
Good luck to you to, I've been trying off and on for about a year and now I'm trying to make a solid attempt. What compiler do you use?
Re: What I'm I doing wrong?
Why you dont start from crash again?
Re: What I'm I doing wrong?
Quote:
Originally Posted by Destroyer of Hope
:gah2: That didn't work.
Good luck to you to, I've been trying off and on for about a year and now I'm trying to make a solid attempt. What compiler do you use?
I use the compiler that comes with Visual Studio 2005 (school software) but I don't know specifically.
Also, one last thing. Caius Flaminius is right, just try again, and try adding an "endl;" after your cout like:
Code:
cout << "Hello World!" << endl;
Re: What I'm I doing wrong?
found the problem, the program wasn't stoping at the end so it just closed. I fixed it by adding: system (pause) to the end. Thanks for your help. :bow: