Console program pops up the disappears

Hello. I’m new to VS. I have Visual Studio 17. When I run the console program it pops up then disappears. It doesn’t wait for a key press. Does anyone know how to fix this?

Did you change the settings in VS2017 (Project->Properties) like this?

You need to set the SubSystem to “Console”. You also can avoid the problem when creating the project by selecting “Console Application”. My VS Language is not english so the terms I use might not match yours exactly.

Best,
David

David,
I did set the properties to console. The only option for a new console app is windows console.
I

Not sure what I did but I have it working.
Thank you.

Privacy & Terms