Cannot run c graphics programs

后端 未结 7 938
悲哀的现实
悲哀的现实 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:08

    you need to initialize the graphics function first. below is the code to initialize.

    int gd=DETECT,gm; initgraph(&gd,&gm,"c:\\tc\\bgi");

    this will initialize the graphics.

提交回复
热议问题