#include "stdstuff.h" #include "book.h" // sets the ISBN and title of a book void setBook(int newIsbn, const String2002 &newTitle, book &myBook) { myBook.isbn = newIsbn; myBook.title = newTitle; } // returns the ISBN of a book int getBookIsbn(const book &myBook) { return myBook.isbn; } // returns the 3rd letter in title, or '0', if title shorter than that char getBookTitle3rdChar(const book &myBook) { if (myBook.title.length()<3) return '0'; return myBook.title[2]; } // returns true if two books have the same ISBN, false otherwise bool compareBooks(const book &book1, const book &book2) { return (book1.isbn == book2.isbn); }