Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- // This is the bookinator!
- class Book {
- public:
- void Title(std::string title);
- void Author(std::string author);
- void Published(std::string published);
- };
- class Genre: public Book { // I wonder if there's a simpler way to implement this without typing them manually
- public:
- void Fantasy();
- void SciFi();
- void Dystopian();
- void ActionAdventure();
- void Mystery();
- void Horror();
- void Thriller();
- void HistoricalFic();
- void Romance();
- void Comic();
- void Manga();
- void YA();
- void Children();
- // I could add all the nonfiction stuff, but who reads those?
- };
- // class Fantasy: public Genre { // subgenres of fantasy (we can go on and on)
- // public:
- // void GrimDark();
- // void EpicHigh();
- // };
- int main() {
- std::cout << "Welcome to the bookinator!\nThis program will organize your to-read books into another text file."; /*please don't judge me, I couldn't find a better name*/
- std::cout << std::endl << std::endl;
- std::cout << "What is the title of the book?";
- system("pause"); // So the terminal doesn't just quit out after the program's done
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement