Guest User

Untitled

a guest
Oct 8th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include "Waiter.h"
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. Waiter::Waiter(int id, int id_o_S)
  6. {
  7.     ID = id;
  8.     IDofServiced = id_o_S;
  9.  
  10.     cout << "Jestem kelnerem nr: " << ID << ". Aktualnie obsługuje klienta: " << IDofServiced << endl;
  11. };
  12.  
  13. Waiter::~Waiter()
  14. {
  15.     cout << "Byłem kelnerem nr: " << ID << " ostatnim obsługiwałem klienta: " << IDofServiced << endl;
  16. };
  17.  
  18. Waiter::Set_ID(int n)
  19. {
  20.     ID = n;
  21. };
  22.  
  23. Waiter::Get_ID()
  24. {
  25.     return ID;
  26. };
Advertisement
Add Comment
Please, Sign In to add comment