Quote:
Originally Posted by SaswatPadhi View Post
Hi !
Welcome to G4EF

Change your code to something like :

Code: CPP
#include <iostream>

using namespace std;

int main()
{
cout << "Hello World!";
getchar()
return 0;
}


BTW, any C++ compiler would behave the same way as yours, it's not about a fast compiler.
Your code basically prints "Hello World!" and then exits, so you fail to see the output.
If you instruct it to wait for a key-stroke before exiting (getchar ()), you can have your output on screen, till you press a key.

its getchar(); you forgot the ;
SaswatPadhi like this