由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - VS: "press any key to finish" is missing
相关主题
C 语言的官方 spec类似vc问题:在Debug版本成功;在Release版本link失败
请教C++程序中手动Ctrl+C后,如何才可以调用一下自己写的退出函数btw, MS C++ 是ECMA-372标准
About command line in C++还有多少码工用windows machine的?
问一个vc++ 2008的问题ubuntu on windows
初学者问几个C的问题生活质量提高了一大截
How to close notepad from windows cmd console ?aws大幅度出故障原来是一个程序员输错了命令 (转载)
g++跟cl差的也太大了python是不是最好用linux?
问个OO题[转载] CS Interview question
相关话题的讨论汇总
话题: console话题: vs话题: press话题: key话题: closes
进入Programming版参与讨论
1 (共1页)
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 ?

1 (共1页)
进入Programming版参与讨论
相关主题
[转载] CS Interview question初学者问几个C的问题
为什么用try catch不住exception?How to close notepad from windows cmd console ?
问一个MinGW + CMake 的问题g++跟cl差的也太大了
菜鸟的苹果编程问题问个OO题
C 语言的官方 spec类似vc问题:在Debug版本成功;在Release版本link失败
请教C++程序中手动Ctrl+C后,如何才可以调用一下自己写的退出函数btw, MS C++ 是ECMA-372标准
About command line in C++还有多少码工用windows machine的?
问一个vc++ 2008的问题ubuntu on windows
相关话题的讨论汇总
话题: console话题: vs话题: press话题: key话题: closes