注册 登录
编程论坛 C图形专区

文本颜色

shuiyunjian 发布于 2009-10-13 21:03, 774 次点击
#include "stdafx.h"
#include "conio.h"
int _tmain(int argc, _TCHAR* argv[])
{
    int color;
for (color=1;color<16;color++)
{
    textcolor(color);
    cprintf("this is color%d\r\n",color);
   
}
textcolor(128+15);
cprintf("this is blinking\r\n");
    return 0;
}
在vs2005中不能运行 为什么?有这样的错误:\文本颜色设置.cpp(12) : error C3861: 'textcolor': identifier not found
帮忙改改。
请高手介绍一个可以运行的软件。谢谢!
2 回复
#2
zhangxf19892009-10-13 22:02
在TC中运行吧。
#3
liu2009092009-10-13 22:34
回复 楼主 shuiyunjian
在C++6.0里面也不可以运行,我也试过了,不好意思啊
 出现这样的错误
Cannot open include file: 'stdafx.h': No such file or directory
1