Main.cpp 522 B

123456789101112131415161718192021
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include "Book.h"
  4. #include "Library.h"
  5. using namespace std;
  6. int main(){
  7. // check that the book handles as expected
  8. Book book = Book("MyBookTitle", 70);
  9. cout << "Book title: " << book.getTitle() << endl;
  10. cout << "Pages: " << book.getPageNum() << endl;
  11. // check that the library handles as expected
  12. Library library = Library();
  13. cout << "Book spaces: " << library.getBookNum() << endl;
  14. // library.printTitles(); // there are no books in the library
  15. return EXIT_SUCCESS;
  16. }