Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Header.h"
- using namespace travel;
- int main() {
- try {
- TourGuide tg("Suka", 19);
- Tourist t("Su4ara", 25, 4000);
- t.display();
- tg.display();
- t.buyTicket(tg);
- t.display();
- tg.display();
- }
- catch (noMoneyException) {
- cout << "No money" << endl;
- }
- catch (noTicketsException) {
- cout << "No tickets" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement