Ads
Tom's Guide > Forum > Applications > Programming > [Solved] C/C++ Compiler for Win7

[Solved] C/C++ Compiler for Win7

Forum Applications : Programming [Solved] C/C++ Compiler for Win7

Best answer from totalknowledge.

Word :    Username :           
 

Hello,
I wanted a compiler for C/C++ that will allow me to include graphics.h. The older versions like Borland and Turbo dont run in full screen mode.
I have a newer version of Borland but it doesnt support graphics.h .
Plz help.

Reply to fasihxkhatib
Register or log in to remove.

well, I need it to run programs based on Bresenham's algorithms, DDA and others. Will it support??

Reply to fasihxkhatib

It depends on what graphics.h you mean. Where are you getting the graphics.h from? It will need to be paired with the correct library also.

Reply to totalknowledge

#include<graphics.h> so as to use initgraph() and be able to draw line and stuff usign algorithms :)

Reply to fasihxkhatib
Best answer

I think you miss-understood what I meant. After a little digging it looks like graphics.h and initgraph are from a strictly dos/turbo c library.

Your problem is very much linked to the fact that dos has changed. You can either program in a dos emulator, or find a new graphics library to use when you are programming.

You might take a look at SDL to see if it does what you need it to.

http://www.libsdl.org/

Then you will be able to use any compiler, any OS, and quite a few languages.

Reply to totalknowledge

This topic has been closed by Nikorr

------------------------------ Where there's smoke, there's fire...

 

Reply to Nikorr

TomsGuide.com: Over 800,000 questions and answers to address all your high-tech questions. Sign up now! Its free!
Tom's Guide > Forum > Applications > Programming > [Solved] C/C++ Compiler for Win7
Go to:

There are 56 identified and unidentified users. To see the list of identified users, Click here.

Tom's Guide around the World