單鏈表的建立、測長、打印、插入和刪除

/鏈表插入刪除參考1/ #include<stdio.h> #include<malloc.h> typedef struct node //定義鏈表 { int data; struct node *next; }snode; snode* creat() //建立鏈表的函數 { snode *head, *p, *q; head = (snode *)malloc(sizeof(snode))
相關文章
相關標籤/搜索