Error due to #include

前端 未结 3 1583
自闭症患者
自闭症患者 2020-12-18 00:05

I am trying to compile a program which includes the graphics.h header file for C. I have added the graphics.h and winbgim.h header fil

3条回答
  •  Happy的楠姐
    2020-12-18 00:55

    graphics.h is a non-standard header. Most likely it refers to the old BGI graphics library of the Turbo C DOS compiler. It will only work on that particular compiler. And of course DOS is a completely obsolete OS nowadays.

    If you are interested in 3D graphics programming, then OpenGL and/or DirectX are indeed better, modern alternatives, supported by many compilers.

提交回复
热议问题