鱼C论坛

 找回密码
 立即注册
查看: 3903|回复: 1

待解决以下问题!

[复制链接]
发表于 2012-8-14 22:51:25 | 显示全部楼层 |阅读模式
1鱼币
以下代码编译时没错,执行时出错,错误如下,求解?
--------------------Configuration: 文本颜色 - Win32 Debug--------------------
Linking...
0.obj : error LNK2001: unresolved external symbol _textcolor
Debug/文本颜色.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

文本颜色.exe - 2 error(s), 0 warning(s)

#include <conio.h>
void main(void)
{
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");
}

最佳答案

查看完整内容

你是用VC编译的? 你百度查一下textcolor上百度百科,可以发现这个东西,表示VC这个IDE的头文件中没有该函数,你换个有该函数的头文件试试
小甲鱼最新课程 -> https://ilovefishc.com
发表于 2012-8-14 22:51:26 | 显示全部楼层
asdsad.jpg
你是用VC编译的?
你百度查一下textcolor上百度百科,可以发现这个东西,表示VC这个IDE的头文件中没有该函数,你换个有该函数的头文件试试
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-11-14 16:27

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表