컴터 교과서 책에 잇는거 처럼 치는게 안되네요 헬프!
화이트캣
질문 제목 : 왜 실행이 안될까요 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ 제가 실수한게 잇을수도 잇는데
해보는데로 다 해봣는데 안되네욤..그리고 설명좀 해주세용 ㅠㅠㅠㅠㅠㅠ 뭣도 모르고 쳣거든요....;; 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;
}
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2669136 | 리눅스에서 argv의 인자값 출력 관련 질문입니다. 급해여 ㅠㅠ | 덕이 | 2024-09-21 |
2669081 | strcpy와 포인터관련 질문 (7) | 꽃여름 | 2024-09-20 |
2669052 | 컴터 교과서 책에 잇는거 처럼 치는게 안되네요 헬프! | 화이트캣 | 2024-09-20 |
2669026 | 초보프로그래머가 도전프로그래밍문제를 풀다가.. (1) | 독특한 | 2024-09-20 |
2669003 | 다음 소스에서 qosrt를 뺏을때 값이 차이가 나는 이유 | 반월 | 2024-09-20 |
2668976 | 제곱승을 구하는 것 (1) | 소유 | 2024-09-20 |
2668949 | 님들 이거 도데체 뭐틀린건지좀 알려주세요. | 큰재 | 2024-09-19 |
2668901 | for문 한개로 속 빈 다이아 만들기 | 키클 | 2024-09-19 |
2668873 | 재귀 알고리즘을 재귀 없이 만드는 방법 (3) | 희1미햬 | 2024-09-19 |
2668843 | 형변환에 대해 질문좀 드립니다. | PrinceSs | 2024-09-18 |
2668761 | C언어로 어떻게 게임을 코딩하죠? (3) | 큰꽃 | 2024-09-18 |
2668733 | C언어 초봅니다. ㅜㅜ 간단한 이 코드 보시고 주석 좀 달아주실 수 있을까요? | 꽃은별 | 2024-09-17 |
2668702 | api 문서.. (1) | 너만을 | 2024-09-17 |
2668669 | [C]%3d란 무슨의미를 가지나요? | 독특한 | 2024-09-17 |
2668615 | 2차방정식 근 구하는 프로그램 질문입니당 ㅠ (1) | 삐용삐용 | 2024-09-16 |
2668560 | fgets함수 출력할때.. | 민트맛사탕 | 2024-09-16 |
2668508 | c언어 공부법~~ | 옆집오빠야 | 2024-09-15 |
2668460 | 2차원배열 사용자정의 함수이용하여 동적할당 (1) | 울트라 | 2024-09-15 |
2668434 | 반석차랑 전체석차 어케 구하죠? | 내꺼하자 | 2024-09-15 |
2668412 | return 용도 | 유리 | 2024-09-14 |