题目:Press any key to change color, do you want to try it. Please
hurry up!
___________________________________________________________________
程序源代码:
#include
void main(void)
{
int color;
for (color = 0; color < 8; color++)
{
textbackground(color); /*设置文本的背景颜色*/
cprintf(“This is color %d\r\n”, color);
cprintf(“ress any key to continue\r\n”);
getch(); /*输入字符看不见*/
}
}
以上是网上找的,但是我在编译器上通不过,为什么
我用的是VC啊 ,加上#include "stdio.h"没用,现在有个错误是'textbackground' : undeclared identifier ,有没有能让vc执行这个函数的办法啊