全文预览

图书馆管理系统论文及源代码(C语言)

上传者:塑料瓶子 |  格式:doc  |  页数:20 |  大小:223KB

文档介绍
bookin();Рvoid checkbook();Рvoid check();Рvoid tj();Рmain()Р{Рmain1();Рgetch();Р}\*主函数*\Р Рvoid informationmenu()Р{Р char choose;Р informationtable();Р printf("Please enter a choice! :");Р scanf("%c",&choose);Р switch(choose)Р {Р case '1':bookin();break;Р case '2':checkbook();break;Р case '3':tj();break;Р case '4':mainmenu();Р }Р}\*定义informationmenu函数*\Р Рvoid checkbook()Р{char choose;Р checkmenu();}\*定义checkbook函数*\Рvoid checkmenu()Р{char choose;Р checktable();Р check();}\*定义checkmenu函数*\Рvoid bookin()Р{char num1[10];Р char name1[20];Р char author1[10];Р char ch;Р int amount1[4];Р struct book temp;Р FILE *fp;Р printf("\n\e to add a book!");Р /*if((fp)==NULL)Р {printf("THE FILE DOSEN'T EXIST!!!");Р fp=fopen("C:\\bookin.txt","w");Р fclose(fp);}*/Р fp=fopen("C:\\bookin","w+");Р ch='y';Р do{

收藏

分享

举报
下载此文档