I gave the location of bgi folder in my C drive as below:
initgraph(&gd,&gm,"C:\\TurboC++\\Disk\\TurboC3\\BGI");
The program compiles without any error but while running nothing appears...
When I press Alt+F5 I found this error. How to resolve this?
I hope this helps:
Now, as we know the BGI folder is usually in the following path,
C:\TurboC++\disk\TurboC3\BGI
BGI is inside the folder "TurboC3" and NOT "TC".
So the code you need to put in your program is as follows,
initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
After declaring variable.
You have to write the following code in your program.
initgraph(&gd , &gm ,"C:\\TurboC++\\BGI");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.