c++ graphics.h -lbgi not found

前端 未结 4 1033
长情又很酷
长情又很酷 2021-01-20 11:43

I have this code:

#include
int main( )
{
    initwindow( 700 , 700 , \"MY First Program\");
    circle(200, 200, 150);
    getch();
    ret         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-20 12:36

    You must include the initgraph() function. Add this:

    int gd=DETECT,gm;
    initgraph(&gd,&gm,"c:\\TC\BGI"); //Path where BGI folder appears
    

提交回复
热议问题