0
How to enable graphics in turbo c++ for Windows
2 Respostas
+ 5
Turbo C++ is a historic compiler, that runs on 8086 you know. Even then if you want to access graphics, then the tool header file is available in this case I suppose the "graphics.h".
go and explore graphics.h. you will find lot of examples available to understand the workings of its functions. for now
steps to enable graphics mode:-
int gdriver=DETECT , gmode , error;
initgraph(&gdriver,&gmode,"BGI_path");
//here Bgi path is the path to your BGI driver file.
error=graphresult();
if(error!=0)
{
cout<<"error while initialising graphics";
return 1;
}
//perform as you like!