Quote:
|
Originally Posted by Serinth
I think what he means is that if he runs the .exe, he won't see any output unless he's prompting for input, that way the terminal will remain open and not finish so you can see what happens. If you run it in Visual studio though, it will stop and let you view what happens instead of double clicking the .exe alone. Paulchwd, if you use system("pause"); at the end, you'll be able to see your output and the console won't close until you push a button.
|
What do i do in visual studio to see the output of my program (hello world for example)
#include <stdio.h>
int main()
{
printf("\nHello wolrd\n");
return 0;
}
if i dont do a scanf or gets() or something like that