im in the process of learning CPP, and all the examples from this class (we use a textbook on a cd) are compiled with Turbo CPP IDE. Could someone plz help me convert this program so it works with DevCPP?
Use the console GDI for those functions. It is found under 'Other' when creating a new project. If it is not there, then you will ned to get it using vUpdate. Keep in mind that there are 2 versions, on for gcc 3.2 and one for 2.95. Please get the right one.
Curtis
P.S. A really good site for help with that library is fopund at http://www.cs.colorado.edu/~main/bgi/doc/ some eg's need to have graphics.h replaced with winbgim.h to work though.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
im in the process of learning CPP, and all the examples from this class (we use a textbook on a cd) are compiled with Turbo CPP IDE. Could someone plz help me convert this program so it works with DevCPP?
#include "GFX320.H"
void main()
{
GFX320 G;
G.PutPixel(120,80);
G.PutPixel(200,80);
G.PutPixel(120,120);
G.PutPixel(200,120);
G.PutPixel(MIDX,MIDY);
G.Stop();
}
Thanks alot!
-em
Use the console GDI for those functions. It is found under 'Other' when creating a new project. If it is not there, then you will ned to get it using vUpdate. Keep in mind that there are 2 versions, on for gcc 3.2 and one for 2.95. Please get the right one.
Curtis
P.S. A really good site for help with that library is fopund at http://www.cs.colorado.edu/~main/bgi/doc/ some eg's need to have graphics.h replaced with winbgim.h to work though.