头ææ³æ¯æ°å¢èç¹æ»æ¯æå¨å¤´é¨ï¼ä»¥å¸¦å¤´ç»ç¹é¾è¡¨ä¸ºä¾ï¼é¾è¡¨å¤´æéæ¯Headï¼æ°å¢èç¹p
é£ä¹
p->next = Head->next;
Head->next = p;
å¦ææ¯ä¸å¸¦å¤´ç»ç¹çé¾è¡¨é£ä¹å¯¹åºæ¯
p->next = Head;
Head = p;
èå°¾ææ³æ¯å°æ°å¢èç¹æå¨é¾è¡¨å°¾é¨ï¼
for(t = Head; t->next; t=t->next); //ç»ææ¶tæåå°¾èç¹
p->next = NULL; //è¿è¡æå
¥
t->next = p;
温馨提示:内容为网友见解,仅供参考