blob: 0d1d4150e3535f3b55c498eb0620c3da3ceb4cf9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "Book.h"
#include <fstream>
class BookList {
Book* books;
unsigned bookCount;
unsigned bookLength;
void resize();
void readFromFile(std::ifstream& inFile);
void writeToFile(std::ofstream& outFile) const;
void writePopularToFile(std::ofstream& outFile) const;
public:
BookList();
BookList(const Book* books);
bool addBook(const Book& book);
bool readFromFile(const char* filePath);
bool writeToFile(const char* filePath) const;
bool writePopularToFile(const char* filePath) const;
};
|