Menu

[Solved] Fix Errors C Language Please Include Include Include Int Main Int B 0 C Define D Initgraph Q37278027

fix the errors C Language please

#include<stdio.h>

#include <graphics.h>

#include <dos.h>

int main()

{

int a, b = 0, c = Define, d;

initgraph(&c,&d,”C:TURBOC3BGI”);

fonttstyle(DEFAULT_FONT,HORIZ_DIR,3);

textoption(20,235,”Use a keyboard key to move car”);

displaypoints(.5,.5,630,445,1.5);

for (a = 0; a <= 410; a = a + 10, b++)

{

rectangle(50+a,275,150+a,400);

rectangle(150+a,350,200+a,400);

circle(75+a,410,10);

circle(175+a,410,10);

displaycolor(b);

pausetime(100);

if (a == 410)

break;

cleardisplaypoints ();

}

closegraph();

return 0;

}Compilation failed due to following error(s) main.c:11:22: fatal error: graphics.h: No such file or directory compilation ter

Compilation failed due to following error(s) main.c:11:22: fatal error: graphics.h: No such file or directory compilation terminated. Show transcribed image text Compilation failed due to following error(s) main.c:11:22: fatal error: graphics.h: No such file or directory compilation terminated.

Expert Answer


Answer to fix the errors C Language please #include #include #include int main() { int a, b = 0, c = Define, d; initgraph(&c,&d,”C… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *