![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++学习专栏
廿载风光同笑泪
这个作者很懒,什么都没留下…
展开
-
C++大作业源文件(2)
1.Log.cpp#include"Log.h"#include<iostream>#include<string>using namespace std;Log::Log(){ number = 0;}Log::~Log(){}//注册账号,不过这里我们设置只能注册读者void Log::rigister(User* pu){ cout << "*******************************************原创 2021-06-03 22:57:44 · 220 阅读 · 0 评论 -
C++大作业源文件(1)
1.book.cpp/*本文件实现book类的各个函数,包括显示图书信息函数,设置图书各私有变量的函数,获得所有私有变量的函数*/#include<iostream>#include"book.h"using namespace std;void book::show(){ cout << "图书名为:" << name << endl; cout << "图书编号为:" << code << en原创 2021-06-03 21:16:40 · 254 阅读 · 0 评论 -
C++大作业测试文件
//第一段,测试book.h/*#include<iostream>#include"book.h"using namespace std;int main(){ book book1 = { "三国演义", "00001001", "罗贯中", "2012-08-06", 24.5, 30, true }; book1.show(); book1.set_author("小明"); book1.set_code("00010002"); book1.set_lend_原创 2021-06-03 21:13:04 · 228 阅读 · 0 评论 -
C++大作业头文件
1.Book.h#ifndef BOOK_H_#define BOOK_H_ #include<string>#include<fstream>#include<iostream>#include<time.h>using namespace std;/*此文件定义书本类book.包括私有变量:name, code, author, time(出版日期),price(价格), available(是否可借),lend_time(可借日期数)原创 2021-06-03 21:11:29 · 272 阅读 · 0 评论