+ 6
Do we have graphics header file in c++ as in c
I want to know whether can I implement graphics functions in c++ as in C. If I could do so then how would I define my path in init function If not why Can anyone explain please
4 odpowiedzi
+ 8
//for auto detection
int gdriver = DETECT, gmode;
//initialize graphics mode and where path for driver goes if auto detection failed to load
// initgraph(&gdriver, &gmode, "");
or
initgraph(&gdriver, &gmode, "c://turboc3//bgi");
here path depends on where your driver located.
+ 2
But how can I define path in init function can you please explain me by taking an example
+ 1
you can include the same header file from c and use it in the same way, thats the beauty in c++ :)
+ 1
Yes there is, but not standard one.
U have to set it up !!!
Use this playlist :-
https://www.youtube.com/playlist?list=PLMclp-q8OPhnBqdI6DAIhsHX6RvVD5nha