Turbo-C
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
터보-C 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
Lua 게시판
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C/C++ Q/A
[1231] Re:왜..에러가??
남병철.레조 [lezo] 1313 읽음    2002-09-22 18:24

안녕하세요? 레조입니다.

어떤 에러가 나는건가요?
에러코드를 적어주시면 저처럼 씰데없는 답변이 아니라 실속있는 답변이 있을것 같네요.. ^^;



선녀 님이 쓰신 글 :
: 이것이 **.c 로 저장을해서 돌리면 에러가 나고여...
: **.cpp 로 저장해서 돌리면 에러가 않나는데 왜 그런가여...
: 터보c++3.0 에서여..
:
:
: #include <stdio.h>
: #include <conio.h>
: void main(void)
: {
:     clrscr();
:     char *name,*num;
:     int kor,eng,math,sci,phy;
:     float total1,total2,avg1,avg2;
:     gotoxy(40,5);    printf("score");
:     gotoxy(23,7);   printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
:     gotoxy(25,9);
:     printf("input name : ");    scanf("%s",name);
:     gotoxy(25,10);
:     printf("input number : ");         scanf("%s",num);
:     gotoxy(16,11);
:     printf("input First kor, eng, math, sci, phy :");
:     scanf("%d %d %d %d %d",&kor,&eng,&math,&sci,&phy);
:     total1=kor+eng+math+sci+phy;
:     avg1=total1/5;
:     gotoxy(16,12);
:     printf("input Second kor, eng, math, sci, phy :");
:     scanf("%d %d %d %d %d",&kor,&eng,&math,&sci,&phy);
:     total2=kor+eng+math+sci+phy;
:     avg2=total2/5;
:     gotoxy(23,14);  printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
:
:     gotoxy(25,15);
:     printf("name : %s\t",name);    printf("number : %s\n",num);
:     gotoxy(25,16);
:     printf("First total : %.0f , average : %.2f",total1,avg1);
:     gotoxy(25,17);
:     printf("Second total : %.0f , average : %.2f",total2,avg2);
:     gotoxy(23,19);
:     printf("=======================================");
:     gotoxy(25,21);
:     printf("total sum : %.0f , average : %.2f",total1+total2,(avg1+avg2)/2);
:     getch();
: }
:
:
:

+ -

관련 글 리스트
1210 왜..에러가?? 선녀 1392 2002/09/19
1231     Re:왜..에러가?? 남병철.레조 1313 2002/09/22
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.