关于一个绘图函数的问题?
#include<graphics.h>
#include<stdio.h>
void main()
{
int i;
setviewport(20,20,800,800,0);
scanf("%d",&i);
printf("%d\n",i);
bar3d(20,20,100,100,2,3);
getch();
}
运行后如下:
BGI Error: Graphics not initialized (use 'initgraph')