c++ graphics.h -lbgi not found

前端 未结 4 1037
长情又很酷
长情又很酷 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:27

    If you are coding in C++11, You must know that is deprecated in C++11. If you are compiling it in Turbo C++, you must use the initgraph() function and give the path to the BGI folder. For more details, check this out: http://www.programmingsimplified.com/c/graphics.h

提交回复
热议问题