+ 18

How to use graphics in C language in sololearn ?

#include< graphics. h> library

5th Dec 2018, 6:57 AM
AKS
AKS - avatar
7 Réponses
+ 11
// Hi ADEVIL, // No, The graphics for C in Sololearn Code Playground is not supported.
5th Dec 2018, 7:25 AM
program
program - avatar
+ 5
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?
5th Dec 2018, 4:30 PM
Kirk Schafer
Kirk Schafer - avatar
+ 4
SoloLearn's code playground does not support graphics!!😅😅
5th Dec 2018, 6:59 AM
AL Araf
AL Araf - avatar
+ 4
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
6th Dec 2018, 3:46 AM
Prabhat Kumar Singh
Prabhat Kumar Singh - avatar
+ 3
Love your vision, Kirk 8) Also congrats for the new golden thing! 8D
5th Dec 2018, 6:16 PM
Babak
Babak - avatar
+ 2
Additional info: Although graphic is not supported, Unicode is supportedhttps://code.sololearn.com/c5eB8nC068X4/?ref=app
6th Dec 2018, 5:01 AM
Muhd Khairul Amirin
Muhd Khairul Amirin - avatar
+ 1
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 ... .. .
5th Dec 2018, 11:09 AM
Babak
Babak - avatar