资源描述:
《图书管理系统.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、#include"stdio.h"#include"stdlib.h"#include"conio.h"#include"string.h"#include"dos.h"#include"time.h"#definen10000//函数定义voidhelp();//帮助说明voidload();//起动画面voidxiaoxun();voidbanben();//系统界面voidtuandui();//团队函数voidfind();//查找书voidjjs();//加书voiddelts();//删除书voidjscy();//借书voidhscy();//还书voidts
2、gl();//图书管理voidtd(){printf("tt");for(intv=5;v>=0;v--){printf("%d",v);for(intj=0;j<4;j++){for(inth=0;h<10000000;h++)if(h%1000000==0){for(intjh=0;jh<100000;jh++){if(jh%800000==0)printf(">");}}}for(intu=0;u<4;u++){for(inth1=0;h1<10000000;h1++)if(h1%1000000==0){for(intj1=0;j1<100000;j1++
3、){if(j1%800000==0)printf("b=b");}}}printf("bbb");}}//定义全局变量charuser[7],pwd[21],user1[]="root",c=' ';//定义用户名和密码变量intallts,jcts;//jcts为借出书的量allts库存图书的量charshu[60],bh[6],xm[10],tel[15],she[20],m[10],g[60];//主函数开始structtushu{charname[60];//定义图书名charbh[9];//定义图书编号charzz[10];//定义图书作者intsl;
4、//定义图书数量intdj;//定义单价}ts[n],d[n],temp[13]={{"水浒传","00001","蒋亮",1000,80},//0五位数书。1万本书差不多了应该够了.{"红楼梦","00002","谭婷",500,120},//1{"雪天使之泪","00003","谭娟",6000,60},//2{"天下第二","00004","李利",700,90},//3{"简爱","00005","李杏",800,60},//4{"泡沫之夏","00006","郭君",900,100},//5{"流云天下","00007","唐江山",1380,100},//6{"
5、雄霸天下","00008","刘艳容",234,130},//7{"烈火如歌","00009","周杰",1688,160},//8{"笑傲江湖","00010","梁朋",2345,11},//9{"雪山飞狐","00011","金庸",567,960},//10{"兵心依旧","00012","老兵",890,130},//11{"1","00013","郑远海",678,130},//12};structjscx{chartsname[60];chartsbh[6];charxm[10];chartel[13];charsfc[20];inttssl;inttsyj;
6、}js[n];voidmain(){load();lg:intj=1;//密码输入次数intj1=1;//用户名输入次数loopwhile(j1<=3){system("cls");system("date/t");system("time/t");system("colorf0");printf("");xiaoxun();printf("");banben();//系统界面printf("tttt请输入用户名:");scanf("%s",user);if(strcmp(user,user1)!=0)//用户名不对超出3次数时候退出系统{p
7、rintf("ttt请输入正确的用户名--错语!%d次aaaaaaa",j1);getch();if(j1==3){system("cls");system("color5f");printf("");banben();printf("tt你已输入%d次错误,无法使用本系统!!!",j1);exit(0);}j1++;}elsebreak;}//结束用户验正loopinti=0;while(j<=4)//密码验正loop开始{printf("tttt请输入