该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
//函数名: textbackground
//功 能: 选择新的文本背景颜色
//用 法: void textbackground(int color);
//程序例:
#include
#include
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);
} return 0;
}
-----------------------------
E:\test\juzhen\textbackground_.c||In function 'main':|
E:\test\juzhen\textbackground_.c|11|warning: implicit declaration of function 'clrscr'|
E:\test\juzhen\textbackground_.c|15|warning: implicit declaration of function 'cprintf'|
E:\test\juzhen\textbackground_.c|17|warning: implicit declaration of function 'textcolor'|
E:\test\juzhen\textbackground_.c|18|warning: implicit declaration of function 'textbackground'|
E:\test\juzhen\textbackground_.o:textbackground_.c|| undefined reference to `clrscr'|
E:\test\juzhen\textbackground_.o:textbackground_.c|| undefined reference to `cprintf'|
E:\test\juzhen\textbackground_.o:textbackground_.c|| undefined reference to `cprintf'|
E:\test\juzhen\textbackground_.o:textbackground_.c|| undefined reference to `textcolor'|
E:\test\juzhen\textbackground_.o:textbackground_.c|| undefined reference to `textbackground'|
||=== 已完成构建: 5 个错误, 4 个警告 ===|
网上找了试了也不行