typedef struct _tag
{
char * name;
people * next;
}people;
이 경우는 컴파일 에러 (forword declaration)
typedef struct _tag
{
char * name;
struct _tag * next;
}people;
이 경우는 ok
꼭 이것때문인지는 모르겠으나 암튼
typedef struct _tag
{
char * name;
people * next;
}people;
이 경우는 컴파일 에러 (forword declaration)
typedef struct _tag
{
char * name;
struct _tag * next;
}people;
이 경우는 ok
꼭 이것때문인지는 모르겠으나 암튼
vs로 빨간줄 안뜨길래 그건 아닌가 했는데 다시 해보니 안되네 ㅋㅋ ㄳ
c문법이 원래 그럼
구조체가 ;로 끝나기전엔 people로 재정의가 안되어있는상태잖아 그러니까 오류나지