fatal error C1004: unexpected end of file found
큰애
2023.04.01
#include stdio.h
void num1(void);void num2(void);
void main(){ int a; while(1) { printf(복불복 게임\n\n); printf(1번:뭘까요\n); printf(2번:뭘까요\n); scanf(%d,&a); switch(a){ case 1: num1(); break; case 2: num2(); break; } void num1(void); { printf(당신은 천재야); } void num2(void); { printf(당신은 바보야); } 라고 입력했는데 28번째 줄 } - 요기에 제목과 같은 오류가 나네요 ㅠㅠ 왜이러죠?
-
맛깔손
함수를 미리상단에 선언할땐 ;(세미클론)이 필요하지만
함수를 정의하는경우 ;를 붙히시면안됩니다.