- 6
- 0
- 约1.32万字
- 约 15页
- 2018-12-10 发布于江西
- 举报
数据结构课程设计之图书管理源代码.doc
数据结构课程设计之图书管理源代码
#include STDIO.Htypedef struct Book{int num;char name[20];char author[8];}Book;
typedef struct{int num;char name[8];int booknum;char bookname[20];}Stu;
int BookTotal;Book books[1000];FILE *fp,*fp2;int StuTotal;Stu student[100];
void FirstBook(){Book newbook;FILE *fp;printf(Please input the number,name,author of the first book:\n);scanf(%d%s%s,newbook.num,,newbook.author);fp=fopen(file1,w);if(fwrite(newbook,sizeof(Book),1,fp)!=1)printf(file write error\n);fclose(fp);return;}
NewBook(){Book newbook;int i;printf(Please input the num,name,author\n);sc
原创力文档

文档评论(0)