求大神帮忙看一下哪里错了

qq_34038233 qq_34038233 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
部分代码如下
#ifndef LIBRARY_H
#define LIBRARY_H
#include<string>
using namespace std;
class Library
{
public:
Library(int,int,Catalogue,Borrower*);
~Library();
void displayMessage()const;
void displayBorrower()const;
void setmulu();
void setborr();
private:
int totalBook;
int borrower;
//就是下面两行报错,把Library类里有关这两个的注释掉就可以运行
Catalogue mulu;
Borrower *totalBorrower;
};
class Catalogue
{
public:
Catalogue(BookRecord* = NULL,int=0);
~Catalogue();
private:
BookRecord *totalBookRecord;
int total;
};
void enterborrower();
void enterbookrecord();
#endif

.cpp部分代码

#include<string>
#include<iostream>
#include<cstdlib>
#include"Library.h"
using namespace std;

Library::Library(int a,int b,Catalogue c,Borrower *d)
:mulu(c)
{
totalBook = a;
borrower = b;
totalBorrower = d;
}


大神帮帮忙
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
qq_34038233
C++ 语言 65,212 成员 250,513 内容