Hello , i am new to programming. How can i stop my executed code as below from disappearing .It appears my compiler is too fast.It compiles ok but the black output plan appears and disappears immediately when executed #include <iostream> using namespace std; int main() { cout << "Hello World!"; return 0; }
Hi ! Welcome to G4EF :welcome: Change your code to something like : Code: #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.