Does standard C have a graphics library for DOS applications?? If not, where can I get a graphics.h or similar to use graphics in a DOS programm
Printable View
Does standard C have a graphics library for DOS applications?? If not, where can I get a graphics.h or similar to use graphics in a DOS programm
>Does standard C have a graphics library for DOS applications??
Standard C is concerned with portable libraries, so if you need something specific to one platform then standard C does not offer it. For this you need a third party library which can be found very easily on any search engine.
-Prelude
Then C doesnt have ANY graphics library????
Jesus, that sucks.
>Jesus, that sucks.
It only sucks because you want to draw graphics without having to go install a new library. It only sucks because you probably don't give a hoot about portability, which is one of the most important features of a program. It only sucks because you have to do a little bit more work to draw circles. ISO C is a very portable language, that's one of the best features it has and one of the reasons it's so popular and powerful. A standard graphics library would kill that portability so it was wisely omitted from the standard. If you don't like it, go use VB.
-Prelude
What about the Turbo C graphics.h?? That is a graphics library!!
Yes, but thats: (and I quote Prelude here)Quote:
Originally posted by Paninaro
What about the Turbo C graphics.h?? That is a graphics library!!
Note that when you say "standard C", you're are talking about a predefined language that is governed and controlled, and is portable for numerous systems.Quote:
Standard C is concerned with portable libraries, so if you need something specific to one platform then standard C does not offer it. For this you need a third party library which can be found very easily on any search engine.
When you ask about graphics libraries, you are talking about a specific OS, eg DOS, Windows, *nix etc etc. These types of libraries are not governed by the "standard".
Your very first question was:
>Does standard C have a graphics library for DOS applications??
The answer is simply no, because "standard C" isn't designed specifically for DOS. To remain portabable it must be generic, and leave all the nasty OS specific stuff to custom libraries supplied with each compiler (or as seperate libs). (Am I repeating here?!)