zyp2011_mit 发表于 2011-10-26 23:26:49

textbackground( color)的使用

各位能找一下下面这段程序的错误吗~
#include <conio.h>
void main(void)
{
   int color;
   for (color = 0; color < 8; color++)
   {
           textbackground( color);/*设置文本的背景颜色*/
       cprintf("This is color %d\r\n", color);
       cprintf("Press any key to continue\r\n");
           getchar();
   }
}

Whitehat_K 发表于 2016-4-27 20:30:35

我觉得程序本身是没有错的!
textbackground包含在conio.h头文件中,但是在vc的conio.h里是找不到这个函数,TC中才有的。
推荐你可以用替换函数,功能是一样的。
页: [1]
查看完整版本: textbackground( color)的使用