w*s 发帖数: 7227 | 1 have a console application from Visual Studio 2012,
when i do Ctrl F5,
it usually runs and wait for me to press a key then closes the console.
but it closes automatically.
how to fix this pls ? |
p***o 发帖数: 1252 | 2 For beginner: choose Win32 Console Application when creating the project.
For advanced user: check /SUBSYSTEM:CONSOLE .
【在 w*s 的大作中提到】 : have a console application from Visual Studio 2012, : when i do Ctrl F5, : it usually runs and wait for me to press a key then closes the console. : but it closes automatically. : how to fix this pls ?
|
w*s 发帖数: 7227 | 3 this is console app, it was working, until suddenly one day it changed ...
【在 p***o 的大作中提到】 : For beginner: choose Win32 Console Application when creating the project. : For advanced user: check /SUBSYSTEM:CONSOLE .
|
p***o 发帖数: 1252 | 4 Make sure /SUBSYSTEM:CONSOLE is in your linking options, rebuild and see
if it comes back ...
【在 w*s 的大作中提到】 : this is console app, it was working, until suddenly one day it changed ...
|
s******u 发帖数: 501 | 5 直接在你程序的最后加一个getch()吧
【在 w*s 的大作中提到】 : have a console application from Visual Studio 2012, : when i do Ctrl F5, : it usually runs and wait for me to press a key then closes the console. : but it closes automatically. : how to fix this pls ?
|