程序停止 [英] programm stops

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

问题描述

您好,


我有一点问题。也许有人可以帮助我。我正在写一个

小菜单。所以我必须经常访问menupoints。但

问题是,如果我正在使用文件操作(例如fopen),那么

程序就会停止,好像它正在等待某些东西。我在使用后关闭了

文件。一些帮助会很好,因为我不知道

进一步。


Greets

Hello,

I have a little problem. Perhaps someone can help me. I''m writing a
little menu. So I have to access the menupoints quite often. But the
problem is, that if I''m using file operations (such as fopen) the
program simply stops as if it''s waiting for something. I close the
files after use. Some help would be nice, cause I don''t know any
further.

Greets

推荐答案

Basti< mi *** @ arcor.de>这样说:
Basti <mi***@arcor.de> spoke thus:
我有一点问题。也许有人可以帮助我。我正在写一个小菜单。所以我必须经常访问menupoints。但问题是,如果我正在使用文件操作(例如fopen),那么
程序就会停止,好像它正在等待某些事情。我在使用后关闭了
文件。一些帮助会很好,因为我不知道任何进一步的
I have a little problem. Perhaps someone can help me. I''m writing a
little menu. So I have to access the menupoints quite often. But the
problem is, that if I''m using file operations (such as fopen) the
program simply stops as if it''s waiting for something. I close the
files after use. Some help would be nice, cause I don''t know any
further.




发布你的代码,如果它是标准的C并且不是'太冗长了。第一个

条件是非常重要的条件:


你的帖子是comp.lang.c的主题。请访问

http:// www。 ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html


用于发布指南和常见问题。谢谢。


-

Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我

ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。



Post your code, if it''s standard C and isn''t too lengthy. The first
condition is the really important one:

Your post is off-topic for comp.lang.c. Please visit

http://www.ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

for posting guidelines and frequently asked questions. Thank you.

--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.


2004年4月18日15:33:26 -0700, mi ** *@arcor.de (Basti)写道:
On 18 Apr 2004 15:33:26 -0700, mi***@arcor.de (Basti) wrote:
你好,

我有一点问题。也许有人可以帮助我。我正在写一个小菜单。所以我必须经常访问menupoints。但问题是,如果我正在使用文件操作(例如fopen),那么
程序就会停止,好像它正在等待某些事情。我在使用后关闭了
文件。一些帮助会很好,因为我不知道任何进一步的
Hello,

I have a little problem. Perhaps someone can help me. I''m writing a
little menu. So I have to access the menupoints quite often. But the
problem is, that if I''m using file operations (such as fopen) the
program simply stops as if it''s waiting for something. I close the
files after use. Some help would be nice, cause I don''t know any
further.



你在第42行有一个错误。如果这不能解决问题,也许

你可以告诉我们代码。

<<删除电子邮件的del>>


You have an error on line 42. If that doesn''t fix the problem, maybe
you could show us the code.
<<Remove the del for email>>


"巴斯蒂" < MI *** @ arcor.de>在消息中写道

新闻:7f ************************** @ posting.google.c om ...
"Basti" <mi***@arcor.de> wrote in message
news:7f**************************@posting.google.c om...
你好,

我有一点问题。也许有人可以帮助我。我正在写一个小菜单。所以我必须经常访问menupoints。但问题是,如果我正在使用文件操作(例如fopen),那么
程序就会停止,好像它正在等待某些事情。我在使用后关闭了
文件。一些帮助会很好,因为我不知道任何进一步的
Hello,

I have a little problem. Perhaps someone can help me. I''m writing a
little menu. So I have to access the menupoints quite often. But the
problem is, that if I''m using file operations (such as fopen) the
program simply stops as if it''s waiting for something. I close the
files after use. Some help would be nice, cause I don''t know any
further.



我的猜测是它确实在等待(也许是为了正确的条件停止

a loop)。发布代码。


Ioannis Vranos


My guess is that it is indeed waiting (perhaps for a right condition to stop
a loop). Post the code.


Ioannis Vranos


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

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