C/C 的DOS.H中的函数/延迟/nosound
functions sound/delay/nosound in dos.h for c/c++
如何获得语言C/C 的版本(下载?),函数声音,nosound,delay存在于库中,dos.h?例如,它在Code :: Blocks上的C/C 版本中不存在。为了使用/找到函数声音/nosound/延迟,我该怎么办?谢谢您的帮助!
下载(叹气)Turboc/Turboc 的副本。
在Windows程序中您可以使用win32函数:
-
Sleep()
作为delay()
的替代品 -
Beep()
作为sound()
delay()
nosound()
的组合的替代品。
如果您在Win 7中超过7个,请使用DOS Box下载Borland Turbo C 要收听500 miliseconds的哔哔声,请使用以下代码
#include<iostream.h>
#include<conio.h>
#include<dos.h>
void main()
{clrscr(); //for clearing the screen...
int x;
x=1000; // here 1000 is the frequency of the sound
sound(x); //u can directly write integer in the place of x
delay(500);
nosound(); //it is necessary to close the sound or u will keep on hearing
getch(); // to wait at the end of program
}
相关文章:
- 如何仅为一个函数添加延迟
- 将自定义函数传递到基抽象类中以延迟执行
- C++延迟后的优化器调用函数
- 将作业传递给另一个函数,而不会延迟 arduino
- 在 QT 中运行延迟的函数
- 延迟函数使打开的框架窗口冻结,直到指定的时间过去
- 异步 60 秒延迟后C++执行函数?
- 在Qt中,如何延迟成员函数的返回,直到收到信号?
- 如何在不使用C++冻结线程的情况下延迟函数
- 函数参数的延迟销毁
- 内联lambda是否遭受与函数指针间接寻址相同的延迟
- 关于QStateMachine延迟函数的说明
- 延迟函数调用中的延迟函数调用
- C/C 的DOS.H中的函数/延迟/nosound
- 我想知道 c++ 中的延迟函数
- C/ c++中的延迟函数调用
- 延迟函数调用,如何传递参数
- c++模板编程-延迟函数调用
- 延迟函数是如何工作的
- 延迟函数模板实例化