This is a probably an embarasing question as no doubt the answer is blindingly obvious.
I\'ve used Visual Studio for years, but this is the first time I\'ve done any
Either use:
cin.get();
or
system("pause");
Make sure to make either of them at the end of main() function and before the return statement.
main()
return