C++版图书管理系统

本文实例为大家分享了C++版图书管理系统的具体代码,供大家参考,具体内容如下

使用介绍

图书管理系统源码由两部分组成,第一部分book.h头文件,第二部分book.cpp源文件。复制代码时需注意将book.h文件的源码单独放在一个一个文件里,文件名必须为book.h。源码文件也需放在一个单独的.cpp文件里。

book.h头文件

#include<iostream>
#include<string>
#include<stdlib.h>
#include<conio.h>
using namespace std;

//会员类
class VIP
{
public:
    int vnum;    //会员号
    string name;    //会员姓名
    int num;        //图书编号
    string bookName;  //书名
    string author;    //作者
    string press;    //出版社
    VIP *next;    //指针
};

//图书结点类
class Node
{
public:
    int num;        //图书编号
    string bookName;  //书名
    string author;    //作者
    string press;    //出版社
    Node *next;        //指针
};
VIP vip[100];
Node book[100];

void add();    //增加图书函数
void Output(Node p);    //输出图书信息函数
int LookupBook();    //通过书名查找
void LookupAuthor();    //通过作者名查找
int LookupNum();        //通过编号查找
void LookupPress();    //通过出版社查找
void addVIP();        //增加会员函数
void OutputVIP(VIP s);        //输出会员信息函数
int LookupNumVIP();        //按编号查询会员
void LookupNameVIP();        //按会员姓名查找会员
void DeleteVIPbook();        //删除会员借书信息
void Delete();        //删除会员函数
void Query();        //根据会员编号查询借书信息
void Return();        //还书函数
void Borrow();        //图书借阅函数
void Index();        //首页
void BookInterface();        //图书管理界面
void VIPInterface();        //会员管理界面
void DeleteBook();    //删除图书函数
void LookupBookIn();    //图书查询页面
void LookupVIPIn();//会员查询页面

book.cpp源文件

#include"book.h"
    
int main()
{
    Index();   //首页函数
    return 0;
}

//增加图书函数
void add()
{
    for(int i=0;i<100;i++){
        if(book[i].num==0){
            cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入图书编号:";
            cin>>book[i].num;
            cout<<endl;
            cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入书名:";
            cin>>book[i].bookName;
            cout<<endl;
            cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入作者:";
            cin>>book[i].author;
            cout<<endl;
            cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入出版社:";
            cin>>book[i].press;
            cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"图书添加成功"<<"\n"<<endl;
            break;
        }
    }
    return;
}

//删除图书函数
void DeleteBook(){
    int b=LookupNum();
    book[b].author='\0';
    book[b].bookName='\0';
    book[b].num=0;
    book[b].press='\0';
    cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"图书删除成功"<<endl;
}

//输出图书信息函数
void Output(int b){
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"图书编号:"<<book[b].num<<"    书名:"<<book[b].bookName<<"    作者:"<<book[b].author<<"    出版社:"<<book[b].press<<"\n"<<endl;
}

//通过书名查找
int LookupBook(){
    int j=0;
    string bookname;
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入书名:";
    cin>>bookname;
    for(int i=0;i<100;i++){
        if(book[i].bookName==bookname){
            j=1;
            Output(i);
            return i;
        }
    }
    if(j==0){
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"没有该图书"<<"\n"<<endl;
    }
    return 1000;
}

//通过作者名查找
void LookupAuthor(){
    int j=0;
    string author;
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入作者姓名:";
    cin>>author;
    for(int i=0;i<100;i++){
        if(book[i].author==author){
            j=1;
            Output(i);
        }
    }
    if(j==0){
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"没有该图书"<<"\n"<<endl;
    }
}

//通过编号查找
int LookupNum(){
    int j=0;
    int num;
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入图书编号:";
    cin>>num;
    for(int i=0;i<100;i++){
        if(book[i].num==num){
            j=1;
            Output(i);
            return i;
        }
    }
    if(j==0){
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"没有该图书"<<"\n"<<endl;
    }
    return 1000;
}

//通过出版社查找
void LookupPress(){
    int j=0;
    string press;
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入图书出版社:";
    cin>>press;
    for(int i=0;i<100;i++){
        if(book[i].press==press){
            j=1;
            Output(i);
            break;
        }
    }
    if(j==0){
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"没有该图书"<<"\n"<<endl;
    }
}

//增加会员函数
void addVIP(){
    for(int i=0;i<100;i++){
        if(vip[i].vnum==0){
            cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入会员编号:";
            cin>>vip[i].vnum;
            cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入会员名:";
            cin>>vip[i].name;
            cout<<"\t"<<"\t"<<"\t"<<"\t"<<"会员添加成功"<<"\n"<<endl;
            break;
        }
    }
}

//输出会员信息函数
void OutputVIP(int s){
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"会员编号:"<<vip[s].vnum<<"    会员姓名:"<<vip[s].name<<"\n"<<endl;
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"图书编号:"<<vip[s].num<<"    书名:"<<vip[s].bookName<<"    作者:"<<vip[s].author<<"    出版社:"<<vip[s].press<<endl;
}
//按编号查询会员
int LookupNumVIP(){
    int j=0;
    int num;
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入会员编号:";
    cin>>num;
    for(int i=0;i<100;i++){
        if(vip[i].vnum==num){
            OutputVIP(i);
            j=1;
            return i;
        }
    }
    if(j==0){
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"没有该会员"<<"\n"<<endl;
    }
    return 1000;
}

//按会员姓名查找会员
void LookupNameVIP(){
    int j=0;
    string name;
    cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入会员姓名:";
    cin>>name;
    for(int i=0;i<100;i++){
        if(vip[i].name==name){
            j=1;
            OutputVIP(i);
            break;
        }
    }
    if(j==0){
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"没有该会员"<<"\n"<<endl;
    }
}

//删除会员借书信息
void DeleteVIPbook(){
    int s=LookupNumVIP();
    vip[s].author='\0';
    vip[s].bookName='\0';
    vip[s].num=0;
    vip[s].press='\0';
}

//删除会员函数
void Delete(){
    int s=LookupNumVIP();
    vip[s].name='\0';
    vip[s].vnum=0;
    vip[s].author='\0';
    vip[s].bookName='\0';
    vip[s].num=0;
    vip[s].press='\0';
    cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"会员删除成功"<<endl;
}

//根据会员编号查询借书信息
void Query(){
    LookupNumVIP();
}

//还书函数
void Return(){
        DeleteVIPbook();
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"图书归还成功"<<"\n"<<endl;
}

//图书借阅函数
void Borrow(){
    int b=LookupBook();
    int s=LookupNumVIP();
        vip[s].bookName=book[b].bookName;
        vip[s].author=book[b].author;
        vip[s].num=book[b].num;
        vip[s].press=book[b].press;
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"借书成功"<<"\n"<<endl;
}

//首页
void Index(){
    int i;
    system("cls");
    cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****           图书管理系统         ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  1、图书管理      2、会员管理  ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<"\n"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请选择:";
          cin>>i;
          switch(i){
            case 1:
                BookInterface();
                break;
            case 2:
                VIPInterface();
                break;
            default:
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入1或2"<<"\n"<<endl;
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                Index();
          }
}

//图书管理界面
void BookInterface(){
    system("cls");
    int i;
    cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****          图书管理系统          ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  1、增加图书      2、查询图书  ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  3、图书借阅      4、图书归还  ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  5、删除图书      6、返回首页  ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<"\n"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请选择:";
          cin>>i;
          switch(i){
            case 1:
                add();    //增加图书函数
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                BookInterface();
                break;
            case 2:
                LookupBookIn();    //图书查询页面
                break;
            case 3:
                Borrow();        //图书借阅函数
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                BookInterface();
                break;
            case 4:
                Return();        //还书函数
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                BookInterface();
                break;
            case 5:
                DeleteBook();    //删除图书函数
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                BookInterface();
                break;
            case 6:
                Index();
            default:
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入对应编号"<<"\n"<<endl;
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                BookInterface();
          }
}

//会员管理界面
void VIPInterface(){
    system("cls");
    int i;
    cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****           图书管理系统         ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  1、增加会员      2、查询会员  ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  3、借书信息      4、删除会员  ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****          5、返回首页           ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<"\n"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请选择:";
          cin>>i;
          switch(i){
            case 1:
                addVIP();        //增加会员函数
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                VIPInterface();
                break;
            case 2:
                LookupVIPIn();  //会员查询页面
                break;
            case 3:
                Query();        //根据会员编号查询借书信息
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                VIPInterface();
                break;
            case 4:
                Delete();        //删除会员函数
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                VIPInterface();
                break;
            case 5:
                Index();
                break;
            default:
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入对应编号"<<"\n"<<endl;
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                VIPInterface();
          }
}

//图书查询页面
void LookupBookIn(){
    system("cls");
    int i;
    cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"**************************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****               图书管理系统               ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"**************************************************"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                          ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  1、图书编号查询      2、书名查询        ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                          ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  3、图书作者查询      4、图书出版社查询  ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                          ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****  5、返回上一页        6、返回首页        ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                          ****"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"**************************************************"<<"\n"<<endl;
          cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请选择:";
          cin>>i;
          switch(i){
            case 1:
                LookupNum();    //通过编号查找
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                LookupBookIn();
                break;
            case 2:
                LookupBook();    //通过书名查找
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                LookupBookIn();
                break;
            case 3:
                LookupAuthor();    //通过作者名查找
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                LookupBookIn();
                break;
            case 4:
                LookupPress();    //通过出版社查找
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                LookupBookIn();
                break;
            case 5:
                BookInterface();    //图书管理界面
                break;
            case 6:
                Index();
                break;
            default:
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入对应编号"<<"\n"<<endl;
                cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                system("pause");
                LookupBookIn();
          }
}

//会员查询页面
void LookupVIPIn(){
        int i;
        system("cls");
        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****           图书管理系统         ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****      1、通过编号查找会员       ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****      2、通过姓名查找会员       ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****      3、返回上一页             ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****                                ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****      4、返回首页               ****"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"****************************************"<<"\n"<<endl;
              cout<<"\t"<<"\t"<<"\t"<<"\t"<<"请选择:";
              cin>>i;
               switch(i){
                    case 1:
                        LookupNumVIP();        //按编号查询会员
                        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                        system("pause");
                        LookupVIPIn();
                        break;
                    case 2:
                        LookupNameVIP();        //按会员姓名查找会员
                        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                        system("pause");
                        LookupVIPIn();
                        break;
                    case 3:
                        VIPInterface();    //会员管理界面
                        break;
                    case 4:
                        Index();
                        break;
                    default:
                        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<"请输入对应编号"<<"\n"<<endl;
                        cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t";
                        system("pause");
                        LookupVIPIn();
          }
}

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持我们。

(0)

相关推荐

  • C/C++实现图书信息管理系统

    本文实例为大家分享了c/c++实现图书信息管理系统的具体代码,供大家参考,具体内容如下 程序流程图 源代码 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <conio.h> #include <windows.h> #define N 100 struct type{ char ISBN[N];//ISBN编号(一般为13位) char bookName[N

  • C++实现简单的图书管理系统

    今天再为大家介绍另一个常用的管理系统--图书管理系统,希望大家可以亲自动手实践一下,下面就与大家一起分享我的劳动成果. 图书信息包括:登录号.书名.作者名.分类号.出版单位.出版时间.价格等.试设计一图书信息管理系统,使之能提供以下功能: (1)图书信息录入功能(图书信息用文件保存) (2)图书信息浏览功能 (3)查询和排序功能:(至少一种查询方式)         .按书名查询         .按作者名查询 (4)图书信息的删除与修改 分享代码如下 #include<iostream.h>

  • C++实现小型图书管理系统

    本文实例为大家分享了C++实现小型图书管理系统的具体代码,供大家参考,具体内容如下 因为课程设计的原因,需要实现一个小型图书管理系统 包含功能: 问题描述: 设计一个系统,对图书信息进行管理,信息描述:有关该系统基本信息的描述,如:图书名称.图书编号.单价.作者.存在状态.借书人姓名.性别.学号等. 基本要求: 基本功能: 1.新进图书基本信息的输入.2.图书基本信息的查询.3.对撤消图书信息的删除.4.为借书人办理注册.5.办理借书手续(非注册会员不能借书).6.办理还书手续.7.统计图书库存

  • C++实现图书馆管理系统

    本文实例为大家分享了C++实现图书馆管理系统的具体代码,供大家参考,具体内容如下 一.实验名称 图书馆管理系统 二.实验目的 利用C++语言设计开发一个小型的图书馆管理系统模拟程序,具有如下功能:退出系统.增加图书.删除图书.借阅图书.归还图书.显示图书信息.查询图书等功能.实验中应掌握继承结构,并掌握对象.类.链表的使用和成员函数.构造函数的定义及调用,并掌握使用实验设备的技能技巧和程序的调试方法. 三.实验平台 运行环境:VC++6.0 四.问题分析 图书馆管理系统模拟程序可划分为7个模块:

  • C++实现图书管理系统

    闲来无事,用C++做了一个图书管理系统,主要有借书.还书.图书管理.用户管理等功能,主要用到的技术有容器和文件,以及类的封装 #include <iostream> #include <list> #include <algorithm> #include <string.h> #include <fstream> #include <stdlib.h> using namespace std; class Mybook; class

  • C++顺序表实现图书管理系统

    本文为大家分享了C++顺序表实现图书管理系统的具体代码,供大家参考,具体内容如下 图书信息表包括以下10项常用的基本操作:图书信息表的创建和输出.排序.修改.逆序存储.最贵图书的查找.最爱图书的查找.最佳位置图书的查找.新图书的入库.旧图书的出库.图书去重. 代码: #include<iostream> #include<iomanip> #include<string> using namespace std; //函数结果状态代码 #define OK 1 #def

  • C++利用链表实现图书信息管理系统

    C++利用链表实现一个简单的图书信息管理系统,供大家参考,具体内容如下 (1)图书信息包括ISBN号.书名.作者名.价格和数量等: (2)系统的主要功能包括:图书信息的创建.输出图书信息.查询图书信息.增加图书信息.删除图书信息. #include <stdio.h> #include <stdlib.h> #include <string.h> //创建结构体及其成员 typedef struct Node { int num;//编号 char name[20];/

  • C++实现图书管理系统最新版

    图书管理系统设计,供大家参考,具体内容如下 一.问题描述及功能要求 (1)图书信息录入功能(图书信息用文件保存) (2)图书信息浏览功能 (3)查询和排序功能:(至少一种查询方式) .按书名查询 .按作者名查询 (4)图书信息的删除与修改 二.代码实现 带有注释 废话不说,直接代码,欢迎指正. 大家CV可能有不兼容的情况,可以滴滴,尽可能解决问题地回复. #include<iostream> #include<stdio.h> #include <stdlib.h> #

  • C++项目开发实现图书管理系统

    本文实例为大家分享了C++实现图书管理系统的具体代码,供大家参考,具体内容如下 一.需求分析 1.可以实现添加一条新的图书信息(图书名,图书编号,图书价格,图书作者)2.可以查看全部图书条目3.可以删除指定的某条图书记录 二.系统设计 2.1系统功能介绍 1.添加新图书模块:该模块可以实现将新图书信息录入到系统并将图书信息保存到文件中.2.浏览全部图书模块:可以通过该模块获取文件中全部图书信息,确定图书是否存在,及方便删除.3.删除图书模块:可以根据图书在文件中的记录号删除某条图书记录. 2.2

  • C++实现图书馆管理系统源码

    本文实例为大家分享了C++实现图书馆管理系统的具体代码,供大家参考,具体内容如下 总体思想 用C++开发图书馆管理系统需要对学生和图书分别建立class,调用class中的方法实现学生登陆账号借书,还书,图书馆管理员查看信息等操作. Student.h #pragma once #include<string> #include<vector> #include<iostream> #include<fstream> #include<sstream&

随机推荐