From this link I came to know about using graphics.h using SDL_bgi & libXbgi library. But I don't know the diffrences between using SDL_bgi and libXbgi library.
SDL_bgi is multiplatform, faster, and more compatible with the original GRAPHICS.H by Borland; besides, it provides lots of extensions. No contest.