鏈表的遍歷(打印鏈表全部結點的值 ,返回鏈表的尾結點,輸出該鏈表的結點個數,輸出最大值結點的值)

#include<stdio.h> #include<stdlib.h> #define N 10 typedef struct node{ int data; struct node* next; }ElemSN; //建立一個單向鏈表 ElemSN* CreatLink(int a[],int n) { ElemSN *head,*tail,*p; head=NULL; for
相關文章
相關標籤/搜索