我试图在另一个文件(main.cc)中运行这个程序,但是我在这个类上得到一个错误,这是错误所在。
错误
./Library.h:15:24: error: expected ')'
Library(Book[] &book, int ¤tNumOfBooks);
^
./Library.h:15:16: note: to match this '('
Library(Book[] &book, int ¤tNumOfBooks);
^
代码来源:
class Library{
public:
Book booksLibrary[MAX_ARR_SIZE];
int currentNumOfBooksLibrary;
Library();
Library(Book[] &book, int ¤tNumOfBooks);
void addBook(Book &book);
void print();
private:
}: