Hello, my name is Jonathan and I am a beginner programmer in my first year of studies. I am using a Turbo C++ editor and I'm trying to set up graphics. The problem is I'm not sure how. Here's how i was taught to set up graphics:
#include <graphics.h>
int main()
{
int graphmode;
int graphdriver = DETECT;
intitgraph (&graphdriver, &graphmode, "C:\\BGI");
Im not sure if im doing the part in quotes right...
So... can anyone please find my error? The big thing is the compiler doesnt include graphics.h
I think you don't have graphics.h file in the correct directory. Usually it is located in the c:\\tc\\include dirct. Try to find this header file and locate it in the include diret. and in the initgraph() function write the whole path of BGI file int last argument.
like this for example
initgraph(&gd,&gm,"c:\\tc\\bgi");
first find the correct location of the files. If you donnot get the graphics.h then reinstall the turboc++.