Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include "Library.h"
- using namespace std;
- int main() {
- // we need a library...
- Library* myLibrary = new Library();
- // this is for creating a new book
- string a = "Hogwarts";
- string b = "JK";
- string c = "fantasy";
- string d = "1234";
- Book* mybook = new Book(a,b,c,d);
- cout << (*mybook).isbn << endl;
- // we've created the book, and the library, let's insert the book
- myLibrary->insertBook("1234", *mybook);
- cout << myLibrary->getAvailableBooks() << endl;
- myLibrary->printLibrary();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement