in turbo header file for graphics is graphics.h
I could not find this file in dev c++ compiler.Is it not a standard file or is there any alternative header in this particular compiler
in turbo header file for graphics is graphics.h
I could not find this file in dev c++ compiler.Is it not a standard file or is there any alternative header in this particular compiler
I used to use it too.
It's not a standard one.
You'll have to go for something like OpenGL???
Use the package manager to download LibSDL.
Then look around www.libsdl.org for tutorials and examples.
It might be free, it might not, not sure anymore..
but search for Borland C++'s Turbo compiler...
It is included there :d.
Sometimes I forget what I am doing when I enter a room, actually, quite often.
i'm alredy having turbo c++.Just I wanted to use ANSI specification.
> i'm alredy having turbo c++.Just I wanted to use ANSI specification.
There is no graphics in ANSI-C
Which means whatever graphics you do have is specific in some way to the compiler and OS you're using.
Which also means if you change OS/Compiler, then you may be looking for another graphics library.
Version 2.0 is free.It might be free, it might not, not sure anymore..
but search for Borland C++'s Turbo compiler...
It is included there :d.
But you can get another free compiler in the form of Dev-C++, which is 1e1000 times better.
Dev-C++ works with the SDL.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
You might have a look at: WinBGIm. It kind of leads you to think that you might be doing graphics in a Windows Console but really it's a GUI window that simulates the old Borland stuff.
If you take the file from the first link and unzip it, you have to place a few header files in DevC++ include folder and allow conio.h to overwrite. Then there's a couple of .a files to place in the lib folder.
I have successfully built and ran the Borland "bgidemo", something I haven't done since the early 90's. In short, I started a new console project in DevC++, Added -lbgi and -lgui32 to the linker options, and changed the target type to Win32 GUI.
Why it takes so long time to compile in dev c++Code:Dev-C++, which is 1e1000 times better.
I don't know. Perhaps it performs some optimizations. Check the resulting executable size. Or perhaps (since it's a Windows program) it's just more compilicated for Dev-C++ to compile.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
Nope,it's the reverse case
On executing following program
Code:int main() { return(0); }Code:Result Size of exe file Time taken to compile Turbo C++3 4.92KB less than a second Dev 4.9.9.2 15KB 4 seconds(approx)
1. dev-c++ probably implements the C++ standard a lot better than that old fossil
2. dev-c++ probably diagnoses a lot more errors than that old fossil
That old crap probably not even creates a Windows Console Subsystem executable, but a pure DOS executable.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.