0

How to enable graphics in turbo c++ for Windows

18th Aug 2017, 1:27 PM
Aman Sharma
2 odpowiedzi
+ 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!
18th Aug 2017, 2:49 PM
GeekyShacklebolt
GeekyShacklebolt - avatar