防止exe文件关闭 [英] preventing an exe file from closing

查看:109
本文介绍了防止exe文件关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
如何阻止C ++控制台应用程序立即退出?

Possible Duplicate:
How to stop C++ console application from exiting immediately?

我在c中创建了一个exe文件.当我运行它时,命令提示符打开,然后迅速关闭,我看不到输出.该程序不从用户那里获取任何运行时值.它从文件中读取数据.有什么办法可以防止这种情况?

I created an exe file in c. When I run it command prompt opens and then closes quickly and I cannot see the output. The program takes no runtime values from users. It reads data from a file. Is there any way to prevent this?

推荐答案

从命令行本地运行它.

假设您的文件位于C:\ awesomeness.exe中

Let's say that your file is in C:\awesomeness.exe

打开cmd,键入cd C:\,然后键入awesomeness.exe

Open the cmd, type cd C:\ and then type awesomeness.exe

这篇关于防止exe文件关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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