Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器 软件资源

软件开发小程序制作系统集成与运维空间租用硬件开发视频监控技术咨询与支持——联系电话:0311-88999002/88999003

首页 / 软件开发 / C语言 / C语言函数大全(d开头)

C语言函数大全(d开头)2010-01-29函数名: delay

功能: 将程序的执行暂停一段时间(毫秒)

用法: void delay(unsigned milliseconds);

程序例:

/* Emits a 440-Hz tone for 500 milliseconds */
#include
int main(void)
{
sound(440);
delay(500);
nosound();
return 0;
}

函数名: delline

功能: 在文本窗口中删去一行

用法: void delline(void);

程序例:

#include
int main(void)
{
clrscr();
cprintf("The function DELLINE deletes
the line containing the ");
cprintf("cursor and moves all lines
below it one line up. ");
cprintf("DELLINE operates within the
currently active text ");
cprintf("window. Press any key to
continue . . .");
gotoxy(1,2); /* Move the cursor to the
second line and first column */
getch();
delline();
getch();
return 0;
}