Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //book.h
- #ifndef BOOK_H
- #define BOOK_H
- #include <string>
- //using namespace std;
- class CBook{
- public:
- CBook();
- CBook(string aname,long icode,string tt,long cd );
- void showBookDetail();
- private:
- string authorName;
- long indexcode;
- string title;
- long code;
- };
- #endif
- // magazine.h
- #ifndef MAGAZINE_H
- #define MAGAZINE_H
- #include <string>
- using namespace std;
- class CMagazine{
- public:
- CMagazine();
- CMagazine(string tt,long cd,int vol);
- void showMagazineDetail();
- private:
- int volume;
- string title;
- long code;
- };
- #endif
Add Comment
Please, Sign In to add comment