最佳答案:
函数名: textbackground
详情介绍
函数名: textbackground

功 能: 选择新的文本背景颜色
用 法: void textbackground(int color);
头文件: 包含在conio.h头文件中,但是在vc的conio.h中找不到这个函数,TC中有;
- 中文名
- textbackground
- 外文名
- textbackground
- 功 能
- 选择新的文本背景颜色
- 用 法
- void textbackground(int color
程序例:
#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("rn");
textcolor(i+1);

textbackground(i);
}
getch();
return 0;
}


