Show a pause in VS

How to show a pause in command line in Visual Studio, I figure out 3 kinds of solution like below showing.

Solution 1:

system(“pause”);

Solution 2:

getchar(); (Need studio.h in include line.)

Solution 3:

Set a option of your project, Your project/Property Pages/Linker/System/SubSystem –> Console(/SUBSYSTEM:CONSOLE)

After above setting you can use “Ctrl + F5” keys to rebuild your project and there you go.