944,052 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 3017
  • C++ RSS
Sep 5th, 2006
2

can't use graphics.h! i need a compiler that have a BGI!

Expand Post »
can somone help me! where can i find a turbo C compiler that has a BGI!
Coz i have a program that have some graphics but i can't run it through my compiler coz it doesn't have a BGI! is there someone who knows where i can find a complete compiler of turbo C with BGI!(borland graphic interface).
I had been searching on the net for 6 hrs. but i still can't find a complete compiler!
Similar Threads
Reputation Points: 14
Solved Threads: 0
Light Poster
comp_sci11 is offline Offline
38 posts
since Jul 2006
Sep 5th, 2006
0

Re: can't use graphics.h! i need a compiler that have a BGI!

probably because BGI requires a 32-bit compiler, which TurboC is not. Upgrade to one of the free compilers mentioned in that link.
Last edited by Ancient Dragon; Sep 5th, 2006 at 10:26 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,954 posts
since Aug 2005
Sep 5th, 2006
2

Re: can't use graphics.h! i need a compiler that have a BGI!

Quote ...
where can i find a turbo C compiler
That thing's old and outdated. Get yourself a copy of Dev-C++ or Visual Studio Express.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Sep 6th, 2006
2

Re: can't use graphics.h! i need a compiler that have a BGI!

probably because BGI requires a 32-bit compiler, which TurboC is not. Upgrade to one of the free compilers mentioned in that link.
Just the opposite. I was using BGI back with Turbo C++ 1.

Download from Borland:
Turbo C++ version 1.01
Turbo C++ version 2.01

Other old Borland stuff can be found here.
Moderator
Reputation Points: 3278
Solved Threads: 894
Posting Sage
WaltP is offline Offline
7,747 posts
since May 2006
Sep 7th, 2006
1

Re: can't use graphics.h! i need a compiler that have a BGI!

Instead of using Libraray which draws out jagged circles and which are non standard, better start using OpenGL since it has the same learning curve as that of your BGI (atleast for the basic things) and is much more useful and much more fun.

For eg. if you have to draw out a circle using the circle equation, you could use something like this:

C++ Syntax (Toggle Plain Text)
  1. while (some_control_loop) {
  2. // calculate the values of x and y using the std eqs.
  3.  
  4. glBegin(GL_LINES);
  5.  
  6.  
  7. // All lines lie in the xy plane.
  8. z = 0.0f;
  9. for(angle = 0.0f; angle <= GL_PI; angle += (GL_PI/20.0f))
  10. {
  11. // Top half of the circle
  12. x = 50.0f*sin(angle);
  13. y = 50.0f*cos(angle);
  14. glVertex3f(x, y, z); // First endpoint of line
  15.  
  16. // Bottom half of the circle
  17. x = 50.0f*sin(angle + GL_PI);
  18. y = 50.0f*cos(angle + GL_PI);
  19. glVertex3f(x, y, z); // Second endpoint of line
  20. }
  21.  
  22. // Done drawing points
  23. glEnd();

Well this is a simple eg which shows how u can draw a circle.
Hope it helped, bye.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Get MAC ADDRESS from VC++ or c language
Next Thread in C++ Forum Timeline: help with extra credit lab





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC