Stop the screen from dissapear
-
Hi, I am a total beginner. How do I stop from the black screen which displays the result of execution to automatically dissapear?. It came out in a blink of an eye and then of it goes. I just want to print out a simple "Hello World" message. Thanks.
-
Hi, I am a total beginner. How do I stop from the black screen which displays the result of execution to automatically dissapear?. It came out in a blink of an eye and then of it goes. I just want to print out a simple "Hello World" message. Thanks.
Hi I have understood your problem. If your are creating the console application you would be pressing the F5 button. In this case the windows diaplays the result for your execution but just dissappears. For this you have to press CTL+F5. Cheers "Peace of mind through Technology"
-
Hi I have understood your problem. If your are creating the console application you would be pressing the F5 button. In this case the windows diaplays the result for your execution but just dissappears. For this you have to press CTL+F5. Cheers "Peace of mind through Technology"
I'm using Dev C++. The command to run is F9
-
Hi, I am a total beginner. How do I stop from the black screen which displays the result of execution to automatically dissapear?. It came out in a blink of an eye and then of it goes. I just want to print out a simple "Hello World" message. Thanks.
In case if you don't have any issue in using C functions in C++, then include conio.h and add the following code at the end of function. cout << "Press any key to exit."; getch();
-
Hi, I am a total beginner. How do I stop from the black screen which displays the result of execution to automatically dissapear?. It came out in a blink of an eye and then of it goes. I just want to print out a simple "Hello World" message. Thanks.
Another solution is to call
system("PAUSE");
-
Hi, I am a total beginner. How do I stop from the black screen which displays the result of execution to automatically dissapear?. It came out in a blink of an eye and then of it goes. I just want to print out a simple "Hello World" message. Thanks.
Open a command prompt and run your program from there rather than from within the IDE. That is why the window is quickly disapearing.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb