求大神帮忙看一下哪里错了
部分代码如下
#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;
}

大神帮帮忙
#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;
}

大神帮帮忙
...全文
相关推荐
求周期为2pm二元序列k错线性复杂度的快速算法 (2008年)
采用联合代价的方法,给出了求周期为2pm二元序列k错线性复杂度的快速算法,这里P是素数,并且2是一个模p2的本原根。同时指出了已有文献中的一个主要算法是错误的.
c语言求余数的实例讲解
如果尝试使用非整数类型的变量进行 `%` 运算,编译器将会报错。
根据身份证号码自动提取性别和出生年月及求年龄的公式.doc
四、根据身份证号码自动求年龄根据身份证号码,我们可以自动计算出年龄。
高考数学总复习 概率问题常见错解剖析PPT课件.pptx
例如,任意投掷两枚骰子,求出现点数和为奇数的概率。错解认为出现点数和为奇数的概率为5/11,因为点数和为奇数可取3,5,7,9,11共5种可能,点数为偶数可取2,4,6,8,10,12共6种可能。
求道智慧课堂APP使用说明
错题收集功能帮助学生集中精力解决常错题目,提高学习效率。六、学习记录和统计分析求道智慧课堂APP记录了学生的考勤、测试成绩等信息,形成历史记录。


