BGI error, How to Resolve it?

后端 未结 6 1795
独厮守ぢ
独厮守ぢ 2021-01-13 18:02

I want to run a C program that draws a circle. The program is compiling with no error and it is running. After getting the values like radius from the user, I get the error

6条回答
  •  情话喂你
    2021-01-13 18:45

    Try this (it worked for me) :

    The BGI folder is usually in the following path,

    C:\TurboC++\disk\TurboC3\BGI

    So the code you need to put in your program is as follows,

    initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
    

提交回复
热议问题