How to use graphics.h in codeblocks?

前端 未结 5 1012
予麋鹿
予麋鹿 2020-11-27 20:39

I have recently started learning graphics in C++.

I tried #include in my program in codeblocks but it shows error. Then I downloaded

5条回答
  •  醉梦人生
    2020-11-27 21:02

    • Open the file graphics.h using either of Sublime Text Editor or Notepad++,from the include folder where you have installed Codeblocks.
    • Goto line no 302
    • Delete the line and paste int left=0, int top=0, int right=INT_MAX, int bottom=INT_MAX, in that line.
    • Save the file and start Coding.

提交回复
热议问题