在C程序中按Enter后,命令框消失 [英] Command box disappears after pressing Enter in C Program

查看:114
本文介绍了在C程序中按Enter后,命令框消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我最近刚刚完成了我的C应用程序没什么特别的,只是一个小应用程序供个人使用但是当我按下ENTER时,命令框消失,我的程序刚退出之前它已经存在做了什么。我正在运行一个Xp Home OS


另外我使用IDE环境这是最好的方法。

解决方案

< blockquote>该程序应该做什么?它应该输出一些东西,还是只在背景中工作?如果它只是在后台工作,你是否检查它是否实际执行了它的功能?



该程序应该做什么?它应该输出一些东西,还是只在背景中工作?如果它只是在后台运行,你是否检查它是否实际执行了它的功能?



基本上它是一个简单的程序,它输出6个随机数,但是你按下它就会消失,没有随机数出现


可以我看到你的main()函数的代码?


Hello,

I recently just finished my C app nothing special just a little app for personal use but when I press ENTER the command box disappears and my program just exits before it has done anything.I am running a Xp Home OS

Also I am using a IDE enviroment is this the best way.

解决方案

What is the program supposed to do? Is it supposed to output something, or does it just work in the background? If it just works in the background, did you check to see if it actually performed its function?


What is the program supposed to do? Is it supposed to output something, or does it just work in the background? If it just works in the background, did you check to see if it actually performed its function?

Basically its a simple program which outputs 6 random numbers but you press ENTER and it just disappears no random numbers appear


Can i see the code from your main() function?


这篇关于在C程序中按Enter后,命令框消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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