关于tc画图的问题!!
请大家办帮我看一下问题在哪儿??
#include<conio.h>
#include<graphics.h>
int main(void)
{
int graphdriver=DETECT;
int graphmode;
int x;
initgraph(&graphdriver,&graphmode,"");
cleardevice();
for(x=20;x<300;x+=16)
{
putpixel(x,50,1);
putpixel(x+4,50,2);
}
getch();
closegraph();
return 0;
}
这段程序中,因为我的机器的适配器的driver我不清楚,所以在这个程序中我的首要要做的是,检测适配器的driver!!再接着是画一些点!!我在及其运行的时候编译没能成功。不清楚是程序本身的问题还是tc画图的一些设置有问题。
在编译时,编译器显示错误:
undefined symbol _cleardevice();
undefined symbol _closegraph();
undefined symbol _putpixel();
undefined symbol _initgraph();
我用得tc3.0~!~!
请教,越详细越好!!先在这里谢谢了!!!