main.cpp
来自「用vc编写的图书馆管理系统」· C++ 代码 · 共 45 行
CPP
45 行
#include"card.h"
void main()
{
//图书书证类---------------------------------
bookcard sea,picture;
CTime time1(2000,8,9,0,0,0);
sea.setbookcard("sea","haizi",time1,67.0,"weihai");
sea.getbook();
//judge(sea);
CTime time2(2000,8,6,0,0,0);
picture.setbookcard("picture","bushi",time2,88.0,"xijiang");
picture.getbook();
//借书证类-------------------------------------
CTime time3(2007,2,1,0,0,0);
borrowcard person1;
person1.setborrowcard("xiaomao","778890",time3,'m');
person1.getperson();
//借书记录类-------------------------------------
int key;
cout<<"if you want to know whether the book is in the library,please input 1.if not please input 0."<<endl;
cin>>key;
if(key==1)
{
judge(sea);
judge(picture);
}
CTime time4(2006,1,12,0,0,0);
recordcard record1;
record1.brecord(time4,"xiaomao");
bsetpd(sea);
judge(sea);
record1.handle();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?