Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- // book store
- struct Book {
- int id;
- std::string name;
- int year;
- int price;
- };
- class BookStore {
- public:
- Book* getById() const;
- void write(const Book& book);
- void add(const Book& book);
- };
- class Driver {
- BookStore store;
- public:
- void loop();
- bool processCommand(std::string& str);
- };
- int main(int argc, char** argv) {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement