在C程序中按Enter后,命令框消失

编程入门 行业动态 更新时间:2024-10-27 22:31:31
本文介绍了在C程序中按Enter后,命令框消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

解决方案

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

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

基本上它是一个简单的程序,它输出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后,命令框消失

本文发布于:2023-10-25 18:41:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1527771.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   程序   Enter

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!