问题描述
我与code工作::块和事情是我试过很多次与Conio库,可能有一些其他的库解决问题为好。我每次使用类似 clrscr();
文本颜色();
或任何它说;
I'm working with Code::Blocks and the thing is I tried many times to fix the problem with the Conio library and probably some other libraries as well. Every time I use something like clrscr();
textcolor();
or anything it says ;
Undefined reference to textcolor.
例如,这个简单的程序是应该表现出特定的颜色的总和,但它不工作了,虽然我已经看到它之前工作。
For example, this simple program is supposed to show the sum in a specific color but it's not working out though I have seen it work before.
#include <stdio.h>
#include <conio.h>
int fx(int x,int y,int z)
{
return x+y+z;
}
int main()
{
int a,b,c;
printf("Enter three values to a, b and c.\n");
scanf("%d%d%d",&a,&b,&c);
int total=fx(a,b,c);
textcolor(14);
printf("Output ="); cprintf(" %d",&total);
getch();
return 0;
}
P.S:我使用的是GNU GCC。有时,当我选择另一种编译器或只需打开code :: Blocks的它说,有些插件缺失或者类似的东西。
谁能帮助??
P.S.: I'm using GNU GCC. And sometimes when I select another compiler or just open Code::Blocks it says, "Some plugins are missing," or something like that.Can anyone help??
推荐答案
CONIO.H
不是用gcc支持。
这篇关于CONIO.H不是在$ C $个cblocks工作(未定义参考。)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!