Error due to #include

前端 未结 2 1037
渐次进展
渐次进展 2020-12-18 00:08

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

2条回答
  •  庸人自扰
    2020-12-18 00:49

    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.

提交回复
热议问题