| 123456789101112131415161718192021 |
- #include <iostream>
- #include <cstdlib>
- #include "Book.h"
- #include "Library.h"
- using namespace std;
- int main(){
- // check that the book handles as expected
- Book book = Book("MyBookTitle", 70);
- cout << "Book title: " << book.getTitle() << endl;
- cout << "Pages: " << book.getPageNum() << endl;
- // check that the library handles as expected
- Library library = Library();
- cout << "Book spaces: " << library.getBookNum() << endl;
- // library.printTitles(); // there are no books in the library
- return EXIT_SUCCESS;
- }
|