我的程序运行后显示 bgi error graphics not initialized(ues 'initgraph')
请问这是什么意思,怎么解决
程序如下:
#include<iostream.h>
#include<graphics.h>
#include<conio.h>
int drawline(int strx,int stry,int endx,int endy);
int main()
{
int strx,stry;
int endx,endy;
cout<<"This is a drawline function"<<endl;
cout<<"Please input the start x coordinate:";
cin>>strx;
cout<<endl<<"Please input the start y coordinate:";
cin>>stry;
cout<<endl<<"please input the end x coordinate:";
cin>>endx;
cout<<endl<<"please input the end y coordinate:";
cin>>endy;
drawline(strx,stry,endx,endy);
return 0;