컴터 교과서 책에 잇는거 처럼 치는게 안되네요 헬프!
퐁당
질문 제목 : 왜 실행이 안될까요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ 제가 실수한게 잇을수도 잇는데
해보는데로 다 해봣는데 안되네욤..그리고 설명좀 해주세용 ㅠㅠㅠㅠㅠㅠ 뭣도 모르고 쳣거든요....;; graphics.h,conio.h,process.h,그리고 void main() 이것들은 어떤 경우에 쓰지요?질문 내용 :
#includestdio.h
#includegraphics.h
#includeconio.h
#includeprocess.h
void main(void)
{
int mx, my;
int gd = detect, gm, errorcode;
initgraph(&gd,&gm,f:\\tc\\bgi);
errorcode =graphresult();
if(errorcode ! = grok)
{
printf(graphics error: %s\n,grapherrormsg(errorcode));
printf(press any ket to halt:);
getch();
exit(1);
}mx = (getmaxx()/2);
my = (getmaxy()/2);
setfillstyle(9,1);
bar(0,0,getmaxx(),getmaxy());
setfillstyle(1,7);
set color(15);
line(50,20,600,20);
line(51,21,599,21);
line(50,20,50,400);
line(51,21,51,399);
setcolor(8);
line(400,20,600,400);
line(599,21,599,400);
line(50,400,600,400);
line(51,399,600,399);
setfillstyle(9,8);
bar(70,40,100,380);
bar(70,40,550,70);
bar(70,350,550,379);
bar(545,40,575,380);
settextstyle(1,0,4);
sttextjustify(1.1);
setcolor(lightgreen);
outtextxy(mx+2,my-46,thank you!);
setcolor(lightgreen);
outtextxy(mx+1,my-45,thank you!);
setcolor(green);
outtextxy(mx+2,my-44,thank you!);
setcolor(lightgreen);
outtextxy(mx,my+10,2006);
setcolor(green);
outtextxy(mx+2,my+12,2006);
setcolor(green);
circle(mx,my-30,120);
setcolor(green);
ellipse(mx,my-30,0,360,180,70);
setcolor(cyan);
line(230,220,410,220);
bar3d(235,225,415,225,4,1);
return 0;
}