Xalion Xalion - 22 days ago 11
C++ Question

visual studio 2015 console does not wait for key

I use

ctrl +F5
but it does not work, programe finishes and console is closed. I cannot use

int tmp;
cin>>tmp;


I had ticked option in VS13 which makes that console was waiting for a key, but i cant find it in VS2015.

Answer

Ensure that the project has the "SubSystem" property set to "Console". This can be found in the project properties under Linker > System.

Comments