How to use graphics in C language in sololearn ?

#include< graphics. h> library

12/5/2018 6:57:22 AM


7 Answers

New Answer


// Hi ADEVIL, // No, The graphics for C in Sololearn Code Playground is not supported.


Important detail in C++ Soldier (Babak)'s answer. The compiler here is standard; Borland is not. I realize that some schools require it, but ask yourself this: How many major github projects would hang their future on one company's ideas from decades ago... ...and how many would use (prefer, and hire) a global standard?


SoloLearn's code playground does not support graphics!!😅😅


Apart from sololearn...if you are interested in graphics in c...you have to include graphics.h header file in you program...and in main function you should call initgraph("location of your BGI file"). for example-initgraph(&gd, &gm, "C://TurboC3//BGI");...remenber this will only work in your PC not in solo learn


Love your vision, Kirk 8) Also congrats for the new golden thing! 8D


Additional info: Although graphic is not supported, Unicode is supportedhttps://code.sololearn.com/c5eB8nC068X4/?ref=app


Very interesting header file! I love the archaic stuff all the way! "The last Borland's C++ IDE for DOS is Borland C++ 3.1 (1992). The last C++ environment which supports BGI is Borland C++ 5.02 (1997), which works under Windows but can compile DOS programs. BGI was accessible in C/C++ with graphics.lib / graphics.h, and in Pascal via the graph unit. [...] ¹" _____ ¹ https://en.wikipedia.org/wiki/Borland_Graphics_Interface ~~~~~~~ Also, I can't admire enough the search bar's capabilities! https://www.sololearn.com/Discuss/917162/why-graphics-h-is-not-compile-in-c https://www.sololearn.com/Discuss/1056765/how-to-use-graphics-in-c ... .. .