。c控制台程序 [英] c console programs

查看:103
本文介绍了。c控制台程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个* .EXE控制台文件。
我进入我的投入,一切都很好。

I have a *.exe console file. I enter my inputs, and everything is great.

但是当我进入最后的输入,命令窗口关闭(因为程序已经结束)
之前,我可以读出最后的输出。

but when I enter the last input, the command window closes (because the program has ended) before I can read the last output.

有没有办法来运行* .exe文件和程序结束后,迫使其继续开放?

is there a way to run that *.exe file and force it to stay open after the program ends?

请注意:这不是我的计划。我不能编辑源$ C ​​$ C,所以我不是在寻找像回答增加,而(1)或结束scanf的。

note: this is not my program. I can't edit the source code, so I'm not looking for answers like "add while(1) or scanf at the end".

由于前方。

推荐答案

只需打开一个命令提示符并运行它,它的意思是使用方式。

Just open a command prompt and run it, the way it's meant to be used.

开始 - >运行 - > CMD.EXE

Start -> Run -> cmd.exe

或Win + R - > CMD

or Win+R -> cmd

这篇关于。c控制台程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆