單向鏈表的相關操作

單向鏈表的插入,刪除,修改,查詢。 單向鏈表的插入 1>頭插法 struct node *insert(struct node *phead) { struct node *pnew; pnew=(struct node *)malloc(sizeof(struct node)); printf("insert:"); scanf("%d",&pnew->data); pnew->nex
相關文章
相關標籤/搜索