Alex7's blog

By Alex7, 9 years ago, In English

How to make Visual Studio 2012 pause, without having to add system("pause")???

  • Vote: I like it
  • +4
  • Vote: I do not like it

»
9 years ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

You could use getchar() or I think you can use CTRL-F5 to run your program without closing the window when execution finishes.

»
9 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I tend to run it in Debugging Mode (CTRL+F5).

I had a a problem when I first tried to use it because it would not pause, but it was because VS was not properly set up. I followed these instructions to fix that issue.