Advertisement
MutahirA_

Untitled

Dec 7th, 2022
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. // This is the bookinator!
  4. class Book {
  5. public:
  6. void Title(std::string title);
  7. void Author(std::string author);
  8. void Published(std::string published);
  9. };
  10.  
  11. class Genre: public Book { // I wonder if there's a simpler way to implement this without typing them manually
  12. public:
  13. void Fantasy();
  14. void SciFi();
  15. void Dystopian();
  16. void ActionAdventure();
  17. void Mystery();
  18. void Horror();
  19. void Thriller();
  20. void HistoricalFic();
  21. void Romance();
  22. void Comic();
  23. void Manga();
  24. void YA();
  25. void Children();
  26. // I could add all the nonfiction stuff, but who reads those?
  27. };
  28.  
  29. // class Fantasy: public Genre { // subgenres of fantasy (we can go on and on)
  30. // public:
  31. // void GrimDark();
  32. // void EpicHigh();
  33. // };
  34.  
  35. int main() {
  36. 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*/
  37. std::cout << std::endl << std::endl;
  38. std::cout << "What is the title of the book?";
  39.  
  40. system("pause"); // So the terminal doesn't just quit out after the program's done
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement