<>函数名: cputs
功 能: 写字符到屏幕
用 法: void cputs(const char *string);
程序例: <>#include <conio.h> <>int main(void)
{
/* clear the screen */
clrscr(); <P> /* create a text window */
window(10, 10, 80, 25); <P> /* output some text in the window */
cputs("This is within the window\r\n"); <P> /* wait for a key */
getch();
return 0;
}
<>函数名: delline
功 能: 在文本窗口中删去一行
用 法: void delline(void);
程序例: <>#include <conio.h> <>int main(void)
{
clrscr();
cprintf("The function DELLINE deletes \
the line containing the\r\n");
cprintf("cursor and moves all lines \
below it one line up.\r\n");
cprintf("DELLINE operates within the \
currently active text\r\n");
cprintf("window. Press any key to \
continue . . .");
gotoxy(1,2); /* Move the cursor to the
second line and first column */
getch(); <P> delline();
getch(); <P> return 0;
}
</P>