本文介绍了函数声音/延迟/ nosound在dos.h为c / c ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获得一个版本的语言C / C ++(下载??)其中函数sound,nosound,delay存在于库DOS.H?
例如,它在c / c ++版本的代码:: blocks中不存在。我要做什么,为了使用/找到函数sound / nosound / delay?

How can I get a version of language C/C++(downloaded??) where the functions sound, nosound, delay are present in the library DOS.H? For example it doesn't exist in the version c/c++ on code::blocks. What have I to do in order to use/find the functions sound/nosound/delay?thank you for your help !

推荐答案

在Windows程序中,您可以使用win32函数:

In Windows programs you may use win32 functions:


  • 替换 sound() + delay() + nosound()。

  • Sleep() as a replacement for delay()
  • Beep() as a replacement for a combination of sound() + delay() + nosound().

这篇关于函数声音/延迟/ nosound在dos.h为c / c ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 18:51