Guest User

Untitled

a guest
Jul 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. //book.h
  2. #ifndef BOOK_H
  3. #define BOOK_H
  4. #include <string>
  5. //using namespace std;
  6. class CBook{
  7. public:
  8. CBook();
  9. CBook(string aname,long icode,string tt,long cd );
  10. void showBookDetail();
  11. private:
  12. string authorName;
  13. long indexcode;
  14. string title;
  15. long code;
  16. };
  17. #endif
  18. // magazine.h
  19. #ifndef MAGAZINE_H
  20. #define MAGAZINE_H
  21. #include <string>
  22. using namespace std;
  23. class CMagazine{
  24. public:
  25. CMagazine();
  26. CMagazine(string tt,long cd,int vol);
  27. void showMagazineDetail();
  28. private:
  29. int volume;
  30. string title;
  31. long code;
  32. };
  33. #endif
Add Comment
Please, Sign In to add comment