Cannot run c graphics programs

后端 未结 7 934
悲哀的现实
悲哀的现实 2020-12-11 07:15

I have developed a graphic program on a desktop system. But when I tried to run it on the hp compaq laptop it\'s not getting executed. I developed it using Turbo C. Then i t

7条回答
  •  佛祖请我去吃肉
    2020-12-11 08:03

    I'm assuming that all the other prerequisites like linkers are satisfied.

    Now, as we know the BGI folder is usually in the following path(i.e. if you've followed the default installation):

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

    As you can see the BGI folder is inside "TurboC3" and not TC. So the code you need to put in your program is as follows,

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

    I hope this helps :) Happy graphics programming :D

提交回复
热议问题