linux
Can i using graphics.h via SDL?
You can't
Why?
Because graphics.h is shit
What is best alternative?
It's made for MS DOS. You can't use it directly in Linux. Maybe within VM or DosBox.
You can try this https://opencv.programmingpedia.net/en/tutorial/9749/drawing-shapes-line-circle-etc-in-cplusplus. I didn't try it though.
But: https://askubuntu.com/questions/525051/how-do-i-use-graphics-h-in-ubuntu
this is for CPP. thank you
Apparently there is runtime of Turbo C++ for Linux too. But anyway - it's written many years ago and is not supported. Try something newer and supported
Or it is a lightweight graphics C library
Graphic.h is not standard C library. It doesn't work with other compilers
nothing like this exists, you can always use dosbox though
also afair, this is only way you can run turboc in win 10
Yeah i know. This library exist within Turbo C++
Which library should we use inside linux?
I sent you link for library that can draw lines too as well as million other things.
Graphics.h's programs are like Microsoft programmer library?
It was created for Turbo C++ for MS DOS. It uses https://en.wikipedia.org/wiki/Borland_Graphics_Interface. The last C++ environment which supports BGI is Borland C++ 5.02 (1997) The last time the library was updated was before many of the members of this group were even born.
That pie chart looks cool gonna try it
If you really want to to use this library at least use http://libxbgi.sourceforge.net/ (ports of the old Borland Graphics Interface (graphics.h) to modern systems.)
Isn't there libncurses that does them same thing, like drawing in terminal. I think pdcurses is the windows one.🤷🏾♂️
Im not using it for a real project obviously I have a pc dos 2000 virtual machine with Turbo C on it Ill try this just for fun
Обсуждают сегодня