线性表(部分)
1.线性表的长度是线性表中元素个数2.c语言的“结构”类型:struct node{ ElemType data;//data为抽象元素类型 struct node *next;//next为指针类型};指向结点的指针类型head,p,q说明struct node *head,*p,*q;用typedef定义指针类型typedef struct node{ ElemType data; struct node *next;}node,*Linklist;指针
原创
2021-10-13 22:54:54 ·
49 阅读 ·
0 评论