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.

iamthwee commented: That pic could give seasoned professionals nightmares. -2
Salem commented: Balance +11

Recommended Answers

All 7 Replies

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

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.

commented: Good advice, tis a shame he isn't listening to you. +11

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.

[EDIT]
This is the sort we have at school:
http://en.wikipedia.org/wiki/Image:Turbo_C%2B%2B_3.0.png

Member Avatar

I wouldn't use graphics in c++. They are not needed. Nor would I use that version of turbo c.

[EDIT]
This is the sort we have at school:
http://en.wikipedia.org/wiki/Image:Turbo_C%2B%2B_3.0.png

I'm vaguely familiar with it. It was out of date a decade ago.

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

More to the point, what OS are you running?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.