|
여기서 헤드와테일의초기화를 할때.
head.front=&head;
head.back=&tail;
tail.front=&head;
tail.back=&tail;
이렇게 초기화가 가능할꺼같습니다.
이런식으로 중간노드의경우 struct CLASS 를 malloc로
받고
struct CLASS *t ;
t=malloc(struct CLASS);
t->front=*tail.front;
t->back=&tail;
음 이론상 이렇게 써댔는데 가능할지 몰겠습니다.
제가 알고싶은건 이문법이 맞는건가와
또 틀리다면 어디서 잘못되었는지를 알고싶습니다.
앞서 답변감사합니다.
|