Help please, C++

Posts 1–12 of 12 · Page 1 of 1
Help please, C++
I wanted to try C++ so i tried the simple program of "Hello World" I compiled the Code, no errors occured and then when i try to run the program it loads a bit but nothing happens after that.

Help would be appreciated

Code:
#include <iostream>
using namespace std;

int main ()
{
    cout << "hello World!";
    return 0;
}
Quote Originally Posted by sammysfat View Post
I wanted to try C++ so i tried the simple program of "Hello World" I compiled the Code, no errors occured and then when i try to run the program it loads a bit but nothing happens after that.

Help would be appreciated
Post code, you might need to add a System("pause") or something to stop the program from ending at the end if you are running it without Debug...
On debug it will stop at the end.
just a little help. how do i edit my post so i dont double post
Quote Originally Posted by sammysfat View Post
just a little help. how do i edit my post so i dont double post
Press "Edit" oO
Quote Originally Posted by 'Bruno View Post
Press "Edit" oO
k done, i added the code
You Compile, The Proggie Runs, Returns 0, Then Ends.

What's the probbie ?

Want to see the text ? Pause it / Make something before returning.
Quote Originally Posted by Melodia View Post
You Compile, The Proggie Runs, Returns 0, Then Ends.

What's the probbie ?

Want to see the text ? Pause it / Make something before returning.
AHHHH!!! K thanks
start -> run -> cmd
Run it from there.
Console apps are commandline apps
k i got it working u can close this thread if u like
So, Wasn't that Hard wasn't it =).

Hell, Do yas Jab D=....
You can stop your program before closing with:

Code:
cin.get();             
system("PAUSE");
getchar();
getch();
Regards
Quote Originally Posted by inmate View Post
You can stop your program before closing with:

Code:
cin.get();             
system("PAUSE");
getchar();
getch();
Regards
I use cin.get();. It's more short and easy to learn...
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us