This will work for sure: in old Visual Studio 2010 and later, the system properties were grandfathered from a Windows system, however, 2010 and this property was configured or set to ti null. do the following and it will fix it.
To do this, select the project in the solution explorer on the right or on the left (perhaps it is already selected, so you do not need to worry about it). Then select “project” from the drop-down menus of the menu bar, then select “* project_name * properties”> “configuration properties”> “linker”> “system” and set the first property, the “subsystem” drop-down property to “console” (/ SUBSYSTEM: CONSOLE). "The console window should remain open after execution, as usual.
Are you ready to go NOW !!
source share