c/c ++中的中断问题 [英] problem with Interrupt in c/c++
本文介绍了c/c ++中的中断问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我只是新来的c/c ++中的中断.所以任何人都可以帮助我解决这个问题,请
这是我的问题:
如何使用中断来初始化一个空文件"PRIME.INP",该文件中将包含10,000个数字.
非常感谢您的帮助.
Hello everyone
I''m just new with interrupt in c/c++. So could anyone help me to solve this problem,please
This is my problem:
How to use interrupt to initiate an empty file "PRIME.INP" that will contain 10,000 numbers in it.
I''m very appreciate your help
推荐答案
通常来说,用户代码中没有中断处理功能.另一方面,如果您正在允许它的系统(例如微控制器)上工作,则应在此处发布详细信息,因为中断处理取决于系统.
Generally speaking interrupt handling isn''t available in user code. On the other hand if you are working on a system that allows it (for instance a microcontroller) than you should post here is details, since interrupt handling is system-dependent.
我建议您与您的老师/顾问/导师取得联系,并要求澄清中断"的含义.
或在课程笔记中查看,也许在某处有参考资料,将有助于您完成该任务.
无论如何,请在msdn上查看以下功能:
CreateFile
:创建文件.
WriteFile
:写入文件.
CloseHandle
:关闭文件.
M.
I suggest you get in touch with your teacher/adviser/tutor and ask for clarification about what he means by "interrupt".
Or have a look in your courses notes, maybe there a reference to that somewhere and will help you doing that task.
anyway, have a look, on msdn, that the following functions :
CreateFile
: to create the file.
WriteFile
: to write to the file.
CloseHandle
: to close the file.
M.
这篇关于c/c ++中的中断问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文