I am using Turbo C++ for Windows, version 3.1 at home.
At school, we are using a similar version (maybe 3.0 or 3.1), but with a more blocky display.
(with block cursor and stuff. my one at home looks more... modern)
[EDIT] The school version is Turbo C++ 3.0, possible IDE?
Here's a pic of it: http://en.wikipedia.org/wiki/Image:Turbo_C%2B%2B_3.0.png

Anyway, I wrote some code at school including graphics.h.
It compiled and ran there fine, but I get include errors at home.
It seems my home version doesn't have a graphics.h file in its include folder.

So, I was wondering if I could add one or something to make it work.
If not, could you point me to a similar compiler (preferably turbo of some sort) that will support graphics.

I can include a sample of code on request, but it's a bit longer than I'd like to post.
It has basic stuff like rectangles, circles, and fills.

Votes + Comments
That pic could give seasoned professionals nightmares.
11 Years
Discussion Span
Last Post by horntastic

If you're on a modern OS, abandon ancient tools.

This is a basic C++ class; I don't need the latest compilers.
I'm just looking for a way to run graphics at home.


Graphics designed to run on DOS should be run on DOS. If you want to learn how to do graphics, use current tools, otherwise you're just teaching yourself something useless that you'll have to relearn.

I'm sure Wikipedia lists several graphics libraries that are currently in favor. You'd do yourself a favor to work with that. There also happen to be better, more up-to-date compilers available online for free. It would also benefit you to grab one of them as well.

[edit]OpenGL and Code::Blocks with gcc come to mind.

Votes + Comments
Good advice, tis a shame he isn't listening to you.

Thanks for the tips, but I still need to be able to run graphics in the old way to get a good grade...

So if I need a DOS compiler (which might be the sort I have at school), how could I go about getting one?

We also learned Pascal in that class.
It's high school; I might not even end up using this later.

This is the sort we have at school:


Thanks for the help, but I found an old free version of 3.0 to run at home.

This should clear up my graphics troubles.
Thanks again.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.