+ 6
[SOLVED] Help with Visual Studio output
whenever I run a C++ program on Visual Studio. up pops up a little black window that shows the output for a less than a second how can I extend this time, or have it show in the little console at the bottom of my screen?
7 odpowiedzi
+ 7
Place cin.get(); at the end of your code.
It makes the console application wait for a input.
Run it with ctrl-F5
+ 5
sneeze why ctrl-f5? just f5 works
btw thank you both for the answers.
+ 5
F5 works but does not hold the console window.
So after all statements are executed the console window will disspear before you can view the output.
Ctrl -F5 works and hold the console window, so you can see the output.
+ 5
Ok thanks sneeze
+ 2
Im dont know c++ but probably you should write
cin.get() or system("pause") or using C functions like getch()or getchar()?
+ 1
its may be cuz u dont hit crtl-s
0
both ctrl +5