Including C headers inside a C++ program
For a list of C standard C headers (stdio, stdlib, assert, …), prepend a c and remove the .h. For example stdio.h becomes cstdio. For other headers, use extern “C” { #include “other_header.h” }
For a list of C standard C headers (stdio, stdlib, assert, …), prepend a c and remove the .h. For example stdio.h becomes cstdio. For other headers, use extern “C” { #include “other_header.h” }
First download WinBGIm from http://winbgim.codecutter.org/ Extract it. Copy graphics.h and winbgim.h files in include folder of your compiler directory Copy libbgi.a to lib folder of your compiler directory In code::blocks open Settings >> Compiler and debugger >>linker settings click Add button in link libraries part and browse and select libbgi.a file In right part (i.e. … Read more
<graphics.h> is very old library. It’s better to use something that is new Here are some 2D libraries (platform independent) for C/C++ SDL GTK+ Qt Also there is a free very powerful 3D open source graphics library for C++ OGRE