I'm using Visual Studio 2017 Community and I've faced the problem of the output of my code not displaying.
Before, when I run C code (usually with Ctrl+F5), the output would be displayed on the output window, but for some reason now when I do it there is no output (a command prompt-like window literally blinks and disappears).
I haven't changed anything and I'm really confused as to why this error is occurring. Does anybody have any ideas why?
Here's the screen after writing a simple "Hello World" program and pressing Ctrl+F5.
My code output would normally appear in the console box on the bottom, but now it just shows the build results.
When I create a new project, I click on Empty Project, then add an item and save it as a .c source code. I've been using the same method but have suddenly encountered a problem.
Thank you.
For Windows only:
put
system("Pause")
right at the end.for cross-platform stuff use
instead of
system("Pause");
Sorry for the inconvenience everybody, but I've found the issue. Apparently Visual Studio 2017 has some new modifications from previous versions that I have been using.
Anybody who faces the same issue as I have may refer to the following video link that I used:
https://www.youtube.com/watch?v=Slgwyta-JkA