textbackground

函式名: textbackground 功 能: 選擇新的文本背景顏色 用 法: void textbackground(int color); 頭檔案: 包含在conio.h頭檔案中,但是在vc的conio.h中找不到這個函式,TC中有;

程式例:

#include“stdio.h”

#include“conio.h”

int main(void)

{

int i, j;

clrscr();

for (i=0; i<9; i++)

{

for (j=0; j<80; j++)

cprintf("C");

cprintf("\r\n");

textcolor(i+1);

textbackground(i);

}

getch();

return 0;

}

相關詞條

相關搜尋

熱門詞條

聯絡我們