您的位置首页百科问答

textbackground问题

textbackground问题

你用的tc?如果是,败含那么悉蠢就是对应lib没设置对如果你用的其他编译器TextBackground这个函数是没有的,所以察陆笑当然会出错如果用的是其他编译器,等价的效果可以用system函数调用color指令实现#include #include void main(){int color=0;char a[16];for(color=0;color<8;color++){ sprintf(a, "color %d", color);system(a);printf("This is color %d\r\n",color);printf("Press any key to continue\r\n");}}