Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

visual studio 2015 console does not wait for key

Using ctrl+F5, the program finishes and the console closes without waiting for input. I cannot use

int tmp;
cin>>tmp;   

I had ticked an option in VS2013 which makes the console wait for a key, but I can't find it in VS2015.

like image 934
Xalion Avatar asked Sep 14 '26 16:09

Xalion


1 Answers

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

like image 178
Nullrelation Avatar answered Sep 17 '26 04:09

Nullrelation



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!