資源簡介
C++圖書管理系統,命令行界面,增刪查改圖書信息等基本功能

代碼片段和文件信息
#include?
#include?
#include?
#include?
#include?
using?namespace?std;
const?int?maxb?=?20;
const?int?maxs?=?5;
class?student
{
public:
list?bianhao;//所借書的編號
string?rname()
{
return?name;
}
string??rid()
{
return?id;
}
string?rmima()
{
return?mima;
}
void?getname(string?n)
{
name?=?n;
}
void?getid(string?i)
{
id?=?i;
}
void?getmima(string?m)
{
mima?=?m;
}
void?jie(string?t)
{
bianhao.push_back(t);
}
void?display()
{
cout?<“?“?< cout?<“?“?< cout?<“?“?< cout?<“ ============================================================================“?< cout?<“ =======姓名?:??“?<
}
private:
string?name;
string?id;
string?mima;
};
class?shu
{
public:
int?yn;//是否被借閱?1:被借?0:未被借
string?snum;//借這本書同學的學號
int?kind;//1:工具書?2:科學類?3:小說?4:其他
string?rnum()//輸出書編號
{
return?num;
}
string?rname()
{
return?name;
}
string?rzuozhe()
{
return?zuozhe;
}
int?ryn()
{
return?yn;
}
void?getnum(string?n)//輸入書號
{
num?=?n;
}
void?getname(string?m)
{
name?=?m;
}
void?getzuozhe(string?z)
{
zuozhe?=?z;
}
void?display()
{
if?(kind?==?1)
{
cout?<“ ============================================================================“?< cout?<“ ===書名:“?< }
else?if?(kind?==?2)
{
cout?<“ ============================================================================“?< cout?<“ ===書名:“?< }
else?if?(kind?==?3)
{
cout?<“ ============================================================================“?< cout?<“ ===書名:“?<
}
else
{
cout?<“ ============================================================================“?< cout?<“ ===書名:“?< }
}
private:
string?num;
string?name;
string?zuozhe;
};
void?jiemian(listbook?lists);
void?jiemian1(listbook?lists);?//?管理員界面
void?jiemian2(listbook?lists);//讀者界面
void?jiemian3(listbook?lists?list::iterator?ps);
void?denglu(listbook?lists);
void?jieshu(listbook?lists?list::iterator?ps);
void?fenlei(listbook?lists?list::iterator?ps?int?k);
void?dpchenggong();//輸出借閱成功
void?jiemian(listbook?lists)//初始界面
{
system(“cls“);
cout?<“?“?< cout?<“?“?< cout?<“?“?< cout?<“ ==================================================
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-13?22:48??圖書管理系統c++\
?????目錄???????????0??2019-01-13?22:48??圖書管理系統c++\Debug\
?????文件?????????699??2017-12-28?15:50??圖書管理系統c++\Debug\book.txt
?????文件?????????119??2017-12-28?14:45??圖書管理系統c++\Debug\student.txt
?????文件??????259584??2017-12-29?15:47??圖書管理系統c++\Debug\圖書管理系統.exe
?????文件?????1643420??2017-12-29?15:47??圖書管理系統c++\Debug\圖書管理系統.ilk
?????文件?????2125824??2017-12-29?15:47??圖書管理系統c++\Debug\圖書管理系統.pdb
?????目錄???????????0??2019-01-13?22:48??圖書管理系統c++\圖書管理系統\
?????文件???????????4??2017-12-28?13:23??圖書管理系統c++\圖書管理系統\123.txt
?????目錄???????????0??2019-01-13?22:48??圖書管理系統c++\圖書管理系統\Debug\
?????文件?????1165514??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\tushumain.obj
?????文件?????1118556??2017-12-28?15:35??圖書管理系統c++\圖書管理系統\Debug\tushumain.obj.enc
?????文件??????379904??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\vc141.idb
?????文件??????561152??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\vc141.pdb
?????文件?????????226??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.log
?????目錄???????????0??2019-01-13?22:48??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\
?????文件?????????594??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\CL.command.1.tlog
?????文件???????12318??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\CL.read.1.tlog
?????文件?????????376??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\CL.write.1.tlog
?????文件????????1026??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\li
?????文件????????2794??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\li
?????文件?????????344??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\li
?????文件?????????209??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\Debug\圖書管理系統.tlog\圖書管理系統.lastbuildstate
?????文件?????????699??2017-12-28?15:50??圖書管理系統c++\圖書管理系統\book.txt
?????文件?????????119??2017-12-28?14:45??圖書管理系統c++\圖書管理系統\student.txt
?????文件???????28052??2017-12-29?15:47??圖書管理系統c++\圖書管理系統\tushumain.cpp
?????文件????????5768??2017-12-28?09:36??圖書管理系統c++\圖書管理系統\圖書管理系統.vcxproj
?????文件?????????950??2017-12-28?09:36??圖書管理系統c++\圖書管理系統\圖書管理系統.vcxproj.filters
?????文件????????1336??2017-12-28?09:35??圖書管理系統c++\圖書管理系統.sln
評論
共有 條評論