내가 맨날 개발을 리눅스로 하다가
오늘 사정이 있어서 비주얼 스튜디오 쓰는데
이게 대체 왜 에러가 나는지 모르겠네;
#include <stdio.h>
#include <stdlib.h>
struct Node{
int value;
Node *next;
};
int main() {
system("pause");
}
1>c:\users\administrator\documents\visual studio 2010\projects\a\a.c(6): error C2061: 구문 오류 : 식별자 'Node'
1>c:\users\administrator\documents\visual studio 2010\projects\a\a.c(7): error C2059: 구문 오류 : '}'
struct 안에 Node에서 구문오류나는데 대체 왜???????
미치고 팔짝뛰겠네 ㅡㅡ;
좀 도와주삼 굽신굽신
Node *next;를 struct Node *next;로 바궈보셈
1 소용없던데?
같은 오류 뜸? 그리고 int main() 끝에는 return 0; 붙이고
ㅡㅡ; 갑자기 되네.. ㄳㄳ
그럼 이건 왜 안될까?; typedef struct { int value; Node *next; } Node;
typedef struct shit { ... } Node;