头插法建立、输出单向链表的案例
摘要:1 #include 2 #include 3 struct obj 4 { 5 int num; 6 struct obj *next; 7 }; 8 int main(int argc, char *argv[]) 9 { 10 int n,i,t; 11 struct obj *head=NULL,*temp=NULL,*p=NULL; 1...
阅读全文
posted @ 2018-01-29 16:19