#include "stdstuff.h" #include "Book.h" int main() { Book aBook, bBook, cBook(95,"My Favourite Book"); aBook.set(123,"SYSC 2002 Notes"); bBook.set(345,"My Diary"); cout << "The 3rd character in aBook's title is: " << aBook.getTitle3rdChar() << endl; cout << "bBook's ISBN is: " << bBook.getIsbn() << endl; if (aBook.compare(bBook)) cout << "The two books have the same ISBN.\n"; else cout << "The two books do not have the same ISBN.\n"; //aBook.title = "XYZ"; //bBook.isbn = 123; aBook.set(aBook.getIsbn(),"XYZ"); bBook.set(123,"My Diary"); cout << "The 3rd character in aBook's title is: " << aBook.getTitle3rdChar() << endl; cout << "bBook's ISBN is: " << bBook.getIsbn() << endl; if (aBook.compare(bBook)) cout << "The two books have the same ISBN.\n"; else cout << "The two books do not have the same ISBN.\n"; pause(); return 0; }