Alex7's blog

By Alex7, 10 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

»
10 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.

»
10 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.