too many types in decaration 오류
당나귀
2023.04.01
오유 잡는법이 궁금합니다.질문 요약 :열거형으로 변수를 잡았는데..;;질문 내용 :
#include stdio.h
enum color {YELLOW = 1, GREEN = 3, BLUE = 5}
int main()
{
enum color c1 = YELLOW;
enum color c2 = GREEN;
enum color c3 = BLUE;
printf(열거형 변수 출력 : %d, %d, %d \n, c1, c2, c3);
printf(상수 출력 : %d, %d, %d \n, YELLOW, GREEN, BLUE);
return 0;
}
too many types in decaration 오류가 뜨네요;;