前插法创建单链表(C语言实现)

#include<stdio.h> #include<stdlib.h> struct node{     int data;//结点的数据域     struct node *next;//结点的指针域 }; int main() {     struct node *head,*p;     int i,n;     head = (struct node *)malloc(sizeof(st
相关文章
相关标签/搜索