+ 3

C library graphics.h for Code Playground?

Would Sololearn administrators and moderators please build a graphics.h header file for use in Code Playground if at all possible, or is that only for Windows 7+? I know one could just go with HTML and CSS to change text color and do programming in Javascript to draw graphics on the canvas, but it would be fantastic to be able to change text colors in C and draw basic shapes within the console terminal.

2nd Mar 2019, 12:12 AM
boneSpider
boneSpider - avatar
2 Réponses
+ 10
graphics.h is obsolete and should never be used. It comes with Turbo C++, and has never been part of standard C++. There are modern and much better GUI libraries out there. As for providing these on Code Playground for non-web languages, it is no doubt a challenge for the devs - We are talking about simulating/emulating GUI desktop programs on an Android application. If they could implement it, they would, but at the cost of possibly a lot of resource. This cost may not justify the need of implementing graphic libraries just yet, but I'm sure it's somewhere on the to-do list.
2nd Mar 2019, 7:26 AM
Hatsy Rei
Hatsy Rei - avatar
+ 9
Hatsy Rei, is there a way to use ncurses.h or an equivalent C library in Code Playground or would that also involve emulating the terminal?
7th May 2019, 10:41 AM
boneSpider
boneSpider - avatar