C
ZY190707
这个作者很懒,什么都没留下…
展开
-
简单的图书馆管理系统
#include<stdio.h> #include<string.h> #include<stdlib.h> struct library { int num; char name[20] ; char author[20] ; struct librarynext; };//定义结构体 int main() { int n,c=0,l,flag; char s[20]; struct library head,p,q;/定义指针/ head=(struct libra原创 2021-03-07 13:16:52 · 355 阅读 · 0 评论 -
2020-10-11
#include<stdio.h> #include<malloc.h> typedef struct LNode { int data; struct LNode next; }Linklist; void kaishi(Linklist * &L,int a[],int n) { Linklist s; L=(Linklist)malloc(sizeof(Linklist)); L->next=NULL; for(int i=0;i<n;i++) { s=(L原创 2020-10-11 09:58:14 · 102 阅读 · 0 评论 -
单链表的建立
单链表的建立 #include<stdio.h> #include<malloc.h> typedef struct LNode { int data; struct LNode next; }Linklist; void kaishi(Linklist * &L,int a[],int n) { Linklist s; L=(Linklist)malloc(sizeof(Linklist)); L->next=NULL; for(int i=0;i<n;i++)原创 2020-10-04 16:46:59 · 103 阅读 · 0 评论