Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include "Header.h"
  2.  
  3. using namespace travel;
  4.  
  5. int main() {
  6. try {
  7. TourGuide tg("Suka", 19);
  8. Tourist t("Su4ara", 25, 4000);
  9. t.display();
  10. tg.display();
  11. t.buyTicket(tg);
  12. t.display();
  13. tg.display();
  14. }
  15. catch (noMoneyException) {
  16. cout << "No money" << endl;
  17. }
  18. catch (noTicketsException) {
  19. cout << "No tickets" << endl;
  20. }
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement