Welcome

首页 / 软件开发 / 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;
}