This code does not run directly in code::blocks because winBGIm graphics is for turbo compiler where you can run this code directly and we don’t have to setup library but in code::block you have to setup.To setup WinBGIm graphics library you can see my previous post here .If you setup then now you are ready to compile this code.
Copy the code below and compile it in code::block.While compiling if you got error message in line 320 of graphics.h :” redefination of int right” then change int right=0 to int top = 0.Although,you got other error then leave the message.
Copy the code below and compile it in code::block.While compiling if you got error message in line 320 of graphics.h :” redefination of int right” then change int right=0 to int top = 0.Although,you got other error then leave the message.