C中的图形问题 [英] problem with graphics in c
本文介绍了C中的图形问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用outtext函数turbo c在运行时显示链接器问题,但在编译时没有问题.........
有什么问题......
我的代码在下面给出........
using outtext function turbo c shows linker problem in runtime, but no problem in compile time.........
What is the problem......
My code is given below........
#include<graphics.h>
#include<stdlib.h>
#include<stdio.h>
#include<conio.h>
int main(void)
{ clrscr();
int gdriver = DETECT,gmode,errorcode;
int midx,midy;
initgraph(&gdriver,&gmode,"");
errorcode=graphresult();
if(errorcode != grOk)
{ //cout<<"Eroor"<<grapherrormsg(errorcode);
getch();
exit(1);
}
midx=getmaxx()/2;
midy=getmaxy()/2;
moveto(midx,midy);
outtext("Pallob");
outtext("Suba");
getch();
closegraph();
return 0;
}
推荐答案
这意味着链接程序无法找到包含outtext
的库.
-Saurabh
This means that linker is not able to find the library containingouttext
.
-Saurabh
这篇关于C中的图形问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文