Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BOOK_H
- #define BOOK_H
- #include <iostream>
- #include <iomanip>
- #include <cstdlib>
- #include <string>
- #include <cctype>
- using namespace std;
- class Book {
- public:
- //constructors
- Book();
- Book(string newTitle, int newYear, string newAuthor);
- Book(string allData);
- //setters
- void setTitle(string newTitle);
- void setYear(int newYear);
- void setAuthor(string newAuthor);
- //getters
- string getTitle();
- int getYear();
- string getAuthor();
- //helpers
- bool matchTitle(string targetTitle);
- bool matchAuthor(string targetAuthor);
- bool matchYear(string targetYear);
- bool match(string target);
- void outputBook();
- private:
- string title;
- int year;
- string author;
- };
- #endif
Add Comment
Please, Sign In to add comment