Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. int Pracownik::Porownaj(const Pracownik & wzorzec) const
  2. {
  3.  
  4. if (wzorzec.SprawdzNazwisko(m_Nazwisko.Zwroc()) == 0)
  5. {
  6. if (wzorzec.SprawdzImie(m_Imie.Zwroc()) == 0)
  7. {
  8. if (wzorzec.m_DataUrodzenia.Porownaj(m_DataUrodzenia) == 0) return 0;
  9. else if (wzorzec.m_DataUrodzenia.Porownaj(m_DataUrodzenia) == 1) return 1;
  10. else if (wzorzec.m_DataUrodzenia.Porownaj(m_DataUrodzenia) == -1) return -1;
  11. }
  12. else if (wzorzec.SprawdzImie(m_Imie.Zwroc()) == 1) return -1;
  13. else if (wzorzec.SprawdzImie(m_Imie.Zwroc()) == -1) return 1;
  14. }
  15. else if (wzorzec.SprawdzNazwisko(m_Nazwisko.Zwroc()) == 1) return -1;
  16. else if (wzorzec.SprawdzNazwisko(m_Nazwisko.Zwroc()) == -1) return 1;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement