Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- #include "Profesor.h"
- #include "Asistent.h"
- using namespace std;
- Profesor operator <(Profesor p1, Profesor p2) {
- if (p1.radniStaz<p2.radniStaz) {
- return p1;
- }
- else {
- return p2;
- }
- }
- int main() {
- Profesor p1("Pera","Peric","1234567897897","456asd5",10,"12.10.2010.","Biometrija irisa",2007);
- //p1.ispisiPodatke();
- //ispisiBrojRadneKnjizice(p1);
- Profesor p2("Milan", "Milic", "4445556667778", "11122dsda", 15, "12.10.2010.", "Tema...", 2009);
- Asistent a1("Zika", "Zikic", "456465465465465", "445sdsa6", 5, "09.05.2013.", "Neka tema...", 2014);
- //a1.ispisiPodatke();
- Asistent a2("Nikola", "Nikolic", "1112223331112", "111ssss2", 3, "25.03.2015.", "Neka tema...", 2016);
- Profesor p = p1 < p2;
- //(p1 < p2).ispisiPodatke();
- (a1 < a2).ispisiPodatke();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment