头插法 #include<stdio.h> #include<stdlib.h> //自定义数据类型node typedef struct node{ //数据域 int data; //指针域 struct node *next; } Node;//该数据类型的别名Node