Download the Tom's Hardware App from the App Store
The reference for current tech news
Yes No
Tom's Hardware > 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

Register or log in to remove.
Tom's Hardware > Forum > Applications > Programming > [Solved] C/C++ Compiler for Win7
Go to:

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

  • Ask the community now
  • Publish
Ad
Latest best answer
US
By oldmangamer_73, 92 days ago:

Of course it's possible. I believe you must be US citizen though. I would begin a...

They won a badge
Join us in greeting them