【C++】图书管理系统(完整版)

这篇具有很好参考价值的文章主要介绍了【C++】图书管理系统(完整版)。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

图书管理系统功能概览:

  1. 登录,注册
  2. 学生,老师借书,查看自己当前借书情况,还书。
  3. 管理员增加书,查看当前借阅情况,查看当前所有借阅人,图书信息。

代码概览:

各个模块主要负责功能
 COperationManagement.h  负责登录,注册,管理员,将图书,初始化操作,将借阅信息等从文件中读取出来,放入容器中,便于操作,不用一直对文件进行I/O.
 CBook.h  用于对书抽象,并实现了>>的重载,便于文件读入,读出
 CUser.h  工具人,作为老师,学生的父类
 CStudent.h  对学生进行的抽象
 CTeacher.h 对老师进行的抽象
 CAdministrator.h 对管理的抽象
 CManagementBooks.h  用户所有的相关操作的中间执行者,有设计模式中代理的思想
 源.cpp  界面的的实现与系统入口

说明:业务代码在2023/11/14日后不完全开源需要完整代码可私聊我,可以私聊我发你完整代码,还有就是文件读入建议大家都直接放在相应项目里面,不然就写绝对路径。有问题欢迎大家在评论区提问,喜欢就点个赞咯!

全部代码与讲解:

1.源.cpp

#include<iostream>
#include"CBook.h"
#include"CStudent.h"
#include"CManagementBooks.h"
#include"CTeacher.h"
#include<fstream>
#include"CAdministrator.h"
#include"COperationManagement.h"
using namespace std;
int main()
{
	CManagementBooks mb;
	CUser* user = nullptr;
	COperationManagement om;
	om.init(mb);
	cout << "***** 欢迎来到图书馆 *****" << endl;
	cout << "注意事项" << endl;
	cout << "1.学生最多共可借三本书,老师最多共可借五本"<<endl<<endl;
	cout << "请选择您的登录方式 1:老师 2:学生 3:管理员" << endl;
	int t;
	cin >> t;
	if (t == 1)
	{
		user = new CTeacher;
	}
	else if(t == 2)
	{
		user = new CStudent;
	}
	else if(t == 3)
	{
		CAdministrator admin;
		om.adminLogin(admin);
		admin.showInfo();
		om.adminOperation(admin, mb);
		return 0;
	}
	cout << "您是否已有账号?(y/n):" << endl;
	string c;
	cin >> c;
	if (c == "y")
	{
		cout << "请登录:" << endl;
		om.login(user,t);
		user->showInfo();
	}
	else
	{
		cout << "来注册一个吧!" << endl;
		om.Register(user,t);
	}
	om.userOperation(user, mb);
	delete user;
	return 0;
}

实现效果:
【C++】图书管理系统(完整版)
2.COperationManagement.cpp

#include "COperationManagement.h"
void COperationManagement::login(CUser* user, int t)
{
	ifstream readFile;
	ifstream readFile1;
	if (t == 1)
	{
		readFile.open("teacherLogin.txt");
		readFile1.open("teacher.txt");
	}
	else
	{
		readFile1.open("student.txt");
		readFile.open("studentLogin.txt");
	}
	if (!readFile.is_open())
	{
		cout << "登录数据读取错误" << endl;
	}
	if (!readFile1.is_open())
	{
		cout << "用户数据读取错误" << endl;
	}
	cout << "请输入您的学工号:" << endl;
	string account, password;
	cin >> account;
	int flag = 0;
	while (!readFile.eof())
	{
		string act;
		readFile >> act;
		if (act == account)
		{
			cout << "请输入密码:" << endl;
			cin >> password;
			string pwd;
			readFile >> pwd;
			if (pwd == password)
			{
				cout << "登录成功" << endl;
				flag = 1;
				
				while (!readFile1.eof())
				{
					
					readFile1 >> user;
			
					if(user->getId() == act)
					{
						break;
					}
				}
				break;
			}
			else
			{
				cout << "密码错误,请重新登录" << endl;
				login(user, t);
			}
		}

	}
	if (!flag)
	{
		cout << "学工号错误,请重输入" << endl;
		login(user, t);
	}
	readFile.close();
	readFile1.close();
}

void COperationManagement::Register(CUser* user, int t)
{
	ofstream writeFile;
	ofstream writeFile1;
	if (t == 1)
	{
		writeFile1.open("teacher.txt", ios::app);
		writeFile.open("teacherLogin.txt",ios::app);
	}
	else
	{
		writeFile1.open("student.txt", ios::app);
		writeFile.open("studentLogin.txt",ios::app);
	}
	string pwd, act;
	cout << "请输入您的学工号作为注册账号:" << endl;
	cin >> act;
	cout << "请输入您的注册密码:" << endl;
	cin >> pwd;
	writeFile << endl << act << " " << pwd;
	cout << "请完善您的相应信息:" << endl;
	string  name, department, gender;
	cout << "您的姓名:" << endl;
	cin >> name;
	cout << "您的性别:" << endl;
	cin >> gender;
	cout << "您所在的院系:" << endl;
	cin >> department;
	writeFile1 <<endl << act << " " << name << " " << gender << " " << department;//这里不能用user,因为在登录时才用,并且并没有初始化
	writeFile.close();
	writeFile1.close();
	cout << "注册成功! 赶紧登录进入图书管吧!" << endl;
	login(user, t);
}

void COperationManagement::userOperation(CUser* user, CManagementBooks mb)
{
	while (1)
	{
		cout << "请选择您的操作 1.借书 2.查看自己当前借书情况 3.还书 4.退出" << endl;
		int t;
		cin >> t;
		if (t == 1)
		{
			cout << "当前图书馆情况如下:" << endl;
			mb.showCurrentAllBook();
			cout << "是否有您想要借阅的图书(y/n)" << endl;
			string s;
			cin >> s;
			if (s == "y")
			{
				user->borrowBookFromLibrary(mb);
			}
		}
		else if (t == 2)
		{
			mb.checkBorrowedBook(user->getId());
		}
		else if (t == 3)
		{
			user->returnBook(mb);
		}
		else if (t == 4)
		{
			cout << "退出成功" << endl;
			break;
		}
		else
		{
			cout << "暂无此操作,请按提示操作" << endl;
		}
	}
}

void COperationManagement::adminLogin(CAdministrator& admin)
{
	ifstream readFile("adminLogin.txt");
	ifstream readFile1("admin.txt");
	cout << "请输入您的工号:" << endl;
	string account, password;
	cin >> account;
	int flag = 0;
	while (!readFile.eof())
	{
		string act;
		readFile >> act;
		if (act == account)
		{
			cout << "请输入密码:" << endl;
			cin >> password;
			string pwd;
			readFile >> pwd;
			if (pwd == password)
			{
				cout << "登录成功,欢迎您" << endl;
				flag = 1;

				while (!readFile1.eof())
				{
					
					readFile1 >> admin;
					if(admin.getId() == act)
					{
						break;
					}
				}
				break;
			}
			else
			{
				cout << "密码错误,请重新登录" << endl;
				adminLogin(admin);
			}
		}

	}
	if (!flag)
	{
		cout << "学工号错误,请重输入" << endl;
		adminLogin(admin);
	}
	readFile.close();
	readFile1.close();

}

void COperationManagement::init(CManagementBooks& mb)
{
	mb.initBooks();
	mb.initOutBook();
}

void COperationManagement::adminOperation(CAdministrator admin, CManagementBooks mb)
{
	while (1)
	{
		cout << "请选择您的操作 1.增加书 2.查看当前借阅情况 3.查看当前所有图书信息情况 4.查看借阅人详细信息 5.退出" << endl;
		int t;
		cin >> t;
		if (t == 1)
		{
			admin.addBook(mb);
		}
		else if (t == 2)
		{
			mb.checekOutBook();
		}
		else if (t == 3)
		{
			mb.showAllBooksInfo();
		}
		else if (t == 4)
		{
			string id;
			cout << "请输入您要查看借阅人的学工号:" << endl;
			cin >> id;
			mb.viewBorrowerDetails(id);
		}
		else if (t == 5)
		{
			cout << "退出成功" << endl;
			break;
		}
		else
		{
			cout << "暂无此操作,请按提示操作" << endl;
		}
	}
}

登录效果:
【C++】图书管理系统(完整版)其余功能大家可以自行测试。

CUser.cpp

#include "CUser.h"
#include<iostream>
#include<fstream>
#include"CManagementBooks.h"
using namespace std;




CUser::CUser()
{
    m_name = "陈1";
}

void CUser::setId(string id)
{
    m_id = id;
}

void CUser::setName(string name)
{
    m_name = name;
}

void CUser::setGender(string gender)
{
    m_gender = gender;
}



void CUser::setDepartment(string department)
{
    m_department = department;
}




CUser::~CUser()
{
}

void CUser::returnBook(CManagementBooks& mb)
{
    int all = mb.checkBorrowedBook(m_id);
    if (all == 0)
    {
        cout << "您暂未借书,无需归还" << endl;
    }
    else
    {
        cout << "请输入您要归还的书名:" << endl;
        string bookName;
        cin >> bookName;
        if (mb.checkTrueBorrow(m_id, bookName))
        {
            mb.Return(m_id, bookName);
            cout << "还书成功" << endl;
        }
        else
        {
            cout << "您并未借阅此书" << endl;
        }
    }
}

string CUser::getId()
{
    return m_id;
}

string CUser::getName()
{
    return m_name;
}

string CUser::getGender()
{
    return m_gender;
}


string CUser::getDepartment()
{
    return m_department;
}

std::ostream& operator<<(std::ostream& os, const CUser* user)
{
    os<< endl << user->m_id << " " << user->m_name << " " << user->m_gender << " " << user->m_department;
    return os;
}

std::istream& operator>>(std::istream& is, CUser* user)
{
   is >> user->m_id >> user->m_name >> user->m_gender >> user->m_department;
   return is;
}

CTeacher.cpp

#include "CTeacher.h"
#include<fstream>

CTeacher::CTeacher()
{
    m_name = "刘X";
}

void CTeacher::borrowBookFromLibrary(CManagementBooks& mb)
{
   
        int all = mb.checkBorrowedBook(m_id);
        if (all < 5)
        {
            string name;
            cout << "请输入您要借的书名:" << endl;
            cin >> name;
            if (mb.borrow(name))
            {
                ofstream writeFile("borrowedBook.txt", ios::app);
                mb.setMapValue(m_id, name);
                writeFile << endl << m_id << " " << name;
                writeFile.close();
            }
        }
        else
        {
            cout << "您已经超过了最大可借阅数" << endl;
        }
}
void CTeacher::showInfo()
{
    cout << "姓名:" << m_name<<" " << "学号:" << m_id<<" " << "性别:" << m_gender<<" " << "院系:" << m_department << endl;
}



CStudent.cpp

#include "CStudent.h"
#include<fstream>
using  namespace std;


CStudent::CStudent()
{
    m_class = "软件";
}

void CStudent::showInfo()
{
    cout << "姓名:" << m_name << " " << "学号:" << m_id << " " << "性别:" << m_gender << " " << "院系:" << m_department << " "<<"班级:"<<m_class<<endl;
}

void CStudent::borrowBookFromLibrary(CManagementBooks& mb)
{
    int all = mb.checkBorrowedBook(m_id);
    if (all < 3)
    {
        string name;
        cout << "请输入您要借的书名:" << endl;
        cin >> name;
        if (mb.borrow(name))
        {
            ofstream writeFile("borrowedBook.txt", ios::app);
            mb.setMapValue(m_id, name);
            writeFile << endl << m_id << " " << name;
            writeFile.close();
        }
    }
    else
    {
        cout << "您已经超过了最大可借阅数" << endl;
    }
    
}



void CStudent::setClass(string Class)
{
    m_class = Class;
}



string CStudent::getClass()
{
    return m_class;
}



CManagementBooks.cpp

#include "CManagementBooks.h"
using namespace std;

void CManagementBooks::showCurrentAllBook()
{
	for (int i = 0; i < m_allBookNum; i++)
	{
		cout << "书名:" << m_books[i].getName() <<" " << "剩余数量" << m_books[i].getNum() << endl;
	}
}

CManagementBooks::CManagementBooks()
{
	m_allBookNum = 0;
}

void CManagementBooks::addBook(CBook book)
{
	int flag = 0;
	for (int i = 0; i < m_allBookNum; i++)
	{
		if (m_books[i].getName() == book.getName())
		{
			flag = 1;
			m_books[i].setNum(m_books[i].getNum() + book.getNum());
			ofstream writeFile("library.txt", ios::out);
			for (int i = 0; i < m_allBookNum; i++)
			{
				writeFile << m_books[i];
			}
			writeFile.close();
			break;
		}
	}
	if (!flag)
	{
		ofstream writeFile("library.txt", ios::app);
		m_books.push_back(book);
		m_allBookNum++;
		writeFile << book;
		writeFile.close();
	}
}



int CManagementBooks::getAllBookNum()
{
	return m_allBookNum;
}

void CManagementBooks::showAllBooksInfo()
{
	for (int i = 0; i < m_allBookNum; i++)
	{
		m_books[i].showInfo();
	}
}

bool CManagementBooks::borrow(string name)
{

	for (int i =0; i <m_allBookNum; i++)
	{
		if (m_books[i].getName() == name)
		{
			if (m_books[i].getNum() >= 1)
			{
				m_books[i].setNum(m_books[i].getNum() - 1);
				cout << "借书成功" << endl;
				ofstream writeFile("library.txt");
				for (int i = 0; i < m_allBookNum; i++)
				{
					writeFile << m_books[i];
				}
				writeFile.close();
				return true;
			}
			else
			{
				cout << "此书数量不足" << endl;
				return false;
			}
		}

	}
	cout << "很抱歉,暂无此书" << endl;
	return false;
}

void CManagementBooks::Return(string id,string bookName)
{
	CBook book;
	book.setName(bookName);
	addBook(book);
	ofstream writeFile("borrowedBook.txt",ios::out);
	for (auto iter =m_outBookMap.begin(); iter != m_outBookMap.end(); ++iter)
	{
		if (iter->first == id && iter->second == bookName)
		{
			m_outBookMap.erase(iter);
			break;
		}
	}
	for (auto map : m_outBookMap)
	{
		writeFile << endl << map.first << " " << map.second;
	}
	writeFile.close();
}

void CManagementBooks::initOutBook()
{
	ifstream readFile("borrowedBook.txt");
	if (!readFile.is_open())
	{
		cout << "查看全体借书情况数据读取出错" << endl;
	}
	else
	{
		while (!readFile.eof())
		{
			string studentId, bookName;
			readFile >> studentId >> bookName;
			m_outBookMap.insert(pair<string, string>(studentId, bookName));
		}
	}
	readFile.close();

}

void CManagementBooks::checekOutBook()
{
	for (auto map : m_outBookMap)
	{
		cout << "借阅人学工号:" << map.first<<" " << "借阅书名:" << map.second << endl;
	}
}

void CManagementBooks::initBooks()
{
	ifstream readFile;
	readFile.open("library.txt");
	if (!readFile.is_open())
	{
		cout << "图书数据读取错误" << endl;
		readFile.close();
		return;
	}
	while (!readFile.eof())
	{
		
		CBook book;
		readFile >> book;
		m_allBookNum++;
		m_books.push_back(book);
	}
	readFile.close();
}

int CManagementBooks::checkBorrowedBook(string userId)
{
	
	int flag = 0;
	for (auto map : m_outBookMap)
	{
		if (userId == map.first)
		{
			if (!flag)
			{
				cout << "您已经借的全部图书如下:" << endl;
				flag++;
			}
			else
			{
				flag++;
			}
			cout << map.second << " ";
		}
	}
	if (!flag)
	{
		cout << "您目前没有借书" << endl;
	}
	cout << "共:" << flag << "本";
	cout << endl;
	return flag;
}

void CManagementBooks::viewBorrowerDetails(string id)
{
	ifstream readFile("teacher.txt");
	ifstream readFile1("student.txt");
	int flag = 0;
	if (!readFile1.is_open()|| !readFile.is_open())
	{
		cout << "用户数据读取错误" << endl;
	}
	while (!readFile1.eof())
	{
		string act1, name, department, gender;
		readFile1 >> act1 >> name >> gender >> department;
		if (id == act1)
		{
			cout<<"用户类别:"<<"学生"<<" " << "用户姓名:" << name << " " << "用户性别:" << gender << " " << "用户所在部门:" << department << endl;
			flag = 1;
		}
	
	}
	if (!flag)
	{
		while (!readFile.eof())
		{
			string act1, name, department, gender;
			readFile >> act1 >> name >> gender >> department;
			if (id == act1)
			{
				flag = 1;
				cout << "用户类别:"<<"老师"<<" " << "用户姓名:" << name << " " << "用户性别:" << gender << " " << "用户所在部门:" << department << endl;
			}

		}
	}
	if (!flag)
	{
		cout << "无此用户!" << endl;
	}
	readFile.close();
	readFile1.close();
}

bool CManagementBooks::checkTrueBorrow(string id, string bookName)
{
	
	for (auto map : m_outBookMap)
	{
		if (map.first == id && map.second == bookName)
		{
			return true;
		}
	}
	return false;
}

void CManagementBooks::setMapValue(string userId,string bookName)
{
	m_outBookMap.insert(pair<string, string>(userId, bookName));
}



CBook.cpp

#include "CBook.h"
#include <iostream>
#include<fstream>
using namespace std;


CBook::CBook()
{
	string b = "";
	string randStr = "0123456789X";
	for (int i = 0; i <= 12; i++)
	{
		if (i == 1 || i == 5 || i == 11)
		{
			b += '-';
		}
		else
		{
			if (i == 12)
			{
				b += randStr[rand() % 11];
			}
			else
			{
				b += randStr[rand() % 10];
			}
		}
	}
	m_num = 1;
	m_name = "等待戈多";
	m_author = "李XX";
	m_isbn = b;
	m_page = rand();
	m_pressInfo = "XX出版社";
	m_price = rand();
}

void CBook::setNum(int num)
{
	m_num = num;
}

int CBook::getNum()
{
	return m_num;
}


void CBook::setName(string name)
{
	m_name = name;
}

string CBook::getName()
{
	return m_name;
}

void CBook::setIsbn(string isbn)
{
	m_isbn = isbn;
}

string CBook::getIsbn()
{
	return m_isbn;
}

void CBook::setPressInfo(string perssInfo)
{ 
	m_pressInfo = perssInfo;
}

string CBook::getPressInfo()
{
	return m_pressInfo;
}

void CBook::setPrice(double price)
{
	m_price = price;
}

double CBook::getPrice()
{
	return m_price;
}

void CBook::setPage(int page)
{
	m_page = page;

}

int CBook::getPage()
{
	return m_page;
}

void CBook::setAuthor(string author)
{
	m_author = author;
}

string CBook::getAuthor()
{
	return m_author;
}


void CBook::checkIsnb()
{
	int sum = 0;
	for (int i = 0, j = 1; i < m_isbn.size(); i++) {
		if (m_isbn[i] != '-' && i != 12) {
			sum += (m_isbn[i] - '0') * j;
			j++;
		}

	}
	sum %= 11;
	char c = 'X';
	if (sum < 10) c = sum + '0';
	if (m_isbn[12] == c) puts("This book isbn are Right!");
	else puts("This book isbn are wrong!");
}



bool CBook::isBorrowed()
{
	if (m_num >= 1)
	{
		m_num--;
		return true;
	}
	return false;
}

void CBook::showInfo()
{
	cout<<"作者:" << m_author << " "<<"isbn号码:" << m_isbn << " " <<"书本名称:"<< m_name << " "
		<<"总页数:" << m_page << " " <<"出版社:" << m_pressInfo << " " <<"价格:" << m_price
		<< " " <<"剩余本数:"<<m_num<< endl;
}

std::ostream& operator <<(std::ostream& os, const CBook& book)
{
	os << endl <<book.m_name << " " <<book.m_isbn << " " << book.m_pressInfo << " " <<book.m_price << " " << book.m_page << " " << book.m_author << " " << book.m_num;
	return os;
}

std::istream& operator>>(std::istream& is, CBook& book)
{
	is >> book.m_name >> book.m_isbn >> book.m_pressInfo >> book.m_price >>book.m_page >> book.m_author >> book.m_num;
	return is;
}

CAdministrator.cpp文章来源地址https://www.toymoban.com/news/detail-503743.html

需要完整源码,只需5元
源码+讲解,只需15元 需要请加位心:ch18384322303,备注:xx源码
讲解包括:
讲解视频
本项目问题答疑(不限次数)

到了这里,关于【C++】图书管理系统(完整版)的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • C++课程设计:图书管理系统【附源码】

    课程设计目的   作为软件工程和计算机科学与技术专业的基本课程,课程设计不仅涵盖了C++语言的知识体系,又与工程的实际需要切实相关。通过课程设计的综合性训练,对开发者解决实际问题能力,编程能力,动手能力有很大的提升,更有助于样成良好的编程习惯。 图

    2024年02月07日
    浏览(32)
  • 用C++实现图书馆管理系统

    该程序包含一个 `Book` 类,代表图书馆中的书籍,具有标题、作者、出版商、出版年份和可用性属性。程序中还定义了一个 `bookList` 向量,用于存储图书馆中的所有书籍。 程序的 `main` 函数通过循环显示菜单,然后根据用户的选择调用相应的函数。用户可以选择添加新书籍、

    2024年02月12日
    浏览(43)
  • C++图书馆管理系统(简单版)

    实用的图书馆管理系统应该至少包括一下功能: 1、上传:新进图书以及基本信息的输入 2、删除:旧图书以及基本信息的删除 3、显示:显示图书馆已有的所有图书 4、查找:查询要借阅的图书信息 5、借阅:实现用户办理借阅手续 6、归还:实现用户办理归还手续 系统以菜单

    2024年02月09日
    浏览(42)
  • 用C++实现一个图书馆管理系统

    下图为普通读者的功能 下图为图书馆管理员所拥有的功能 图中所示功能均已实现,不再一一展示,文末有项目源码 1 、 用户进入系统 用户进入系统的前提是必须先登录或者注册 2、 不同身份有不同功能的使用权 普通读者权限较小,图书管理者拥有较高权限,还设有高级管

    2023年04月13日
    浏览(35)
  • 期末大作业图书管理系统(c++)源代码

    功能展示 运行效果 : 主界面: 图书管理界面: 读者管理界面: 借还书管理界面:

    2024年02月11日
    浏览(46)
  • Java Swing图书管理系统,界面漂亮、功能全,直接使用 窗体版本-400

    今天为大家分享一个java语言编写的图书管理程序-400,目前系统功能已经很全面,后续会进一步完善。整个系统界面漂亮,有完整得源码,希望大家可以喜欢。喜欢的帮忙点赞和关注。一起编程、一起进步 开发语言为Java,开发环境Eclipse或者IDEA都可以,数据为MySQL。运行主程

    2024年02月13日
    浏览(33)
  • 【Python】Python高校图书馆书籍管理系统(登录、注册、功能源码设计)【独一无二】

    👉博__主👈:米码收割机 👉技__能👈:C++/Python语言 👉公众号👈:测试开发自动化 👉专__注👈:专注主流机器人、人工智能等相关领域的开发、测试技术 本文是基于PyQT5开发的一款Python高校图书馆书籍管理系统,源码可以关注公众号,后台回复: 高校图书馆管理系统 获

    2024年02月08日
    浏览(35)
  • Java web图书管理系统、在线图书借阅管理系统(带文档)

     大家好,我是DeBug,很高兴你能来阅读!作为一名热爱编程的程序员,我希望通过这些教学笔记与大家分享我的编程经验和知识。在这里,我将会结合实际项目经验,分享编程技巧、最佳实践以及解决问题的方法。无论你是初学者还是有一定经验的程序员,我都希望能够为你

    2024年01月23日
    浏览(42)
  • 图书管理系统|基于Springboot的图书管理系统设计与实现(源码+数据库+文档)

    图书管理系统目录 目录 基于Springboot的图书管理系统设计与实现 一、前言 二、系统功能设计 三、系统实现 1、个人中心 2、管理员管理 3、用户管理 4、图书出版社管理 四、数据库设计 1、实体ER图 五、核心代码  六、论文参考 七、最新计算机毕设选题推荐 八、源码获取:

    2024年03月26日
    浏览(81)
  • 学生信息管理系统(Python)完整版

    目录 功能模块: 实现思路: 运行功能演示: 具体实现过程: 定义学生类: 定义学生管理类 定义显示学生信息函数 输入成绩函数: 添加学生信息: 删除学生信息 修改学生信息 导入学生信息 导出学生信息 求课程平均分 求课程最高分 求课程最低分 最后定义菜单函数和主

    2024年02月03日
    浏览(26)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包