Visual Studio Notes Put the following statement before the return 0 in main. system("pause"); This will cause the window to remain open until you hit any key.