You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
# 数据结构
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
链表的组成,由N个节点构成。节点包含数据域和指针域。
|
|
|
|
|
|
|
|
|
|
```c
|
|
|
|
|
typedef struct Moo{
|
|
|
|
|
int id;
|
|
|
|
|
char * name;
|
|
|
|
|
struct Moo * next;// 指向下一个节点的指针。
|
|
|
|
|
}M;
|
|
|
|
|
|
|
|
|
|
void test(){
|
|
|
|
|
Moo m1 = {1,"ssss"};
|
|
|
|
|
Moo m2 = {2,"ssfe"};
|
|
|
|
|
Moo m3 = {3,"fffe"};
|
|
|
|
|
Moo m4 = {4,"sfsfsfs"};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
Sss
|