- 10
- 0
- 约1.89万字
- 约 14页
- 2019-01-12 发布于四川
- 举报
C语言库函数(S类字母) - 3
函数名: sound
功 能: 以指定频率打开PC扬声器
用 法: void sound(unsigned frequency);
程序例:
/* Emits a 7-Hz tone for 10 seconds.
Your PC may not be able to emit a 7-Hz tone. */
#include dos.h
int main(void)
{
sound(7);
delay(10000);
nosound();
return 0;
}
函数名: spawnl
功 能: 创建并运行子程序
用 法: int spawnl(int mode, char *pathname, char *arg0,
arg1, ... argn, NULL);
程序例:
#include process.h
#include stdio.h
#include conio.h
int main(void)
{
int result;
clrscr();
result =spawnl(P_WAIT, tcc.exe,
原创力文档

文档评论(0)