summaryrefslogtreecommitdiffstats
path: root/Bachelor/Prog2/person-tree/Person.h
blob: a84099614a08908adfe19c9608640b30dc28b705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Person.h: Interface for class Person



#if !defined PERSON_H

#define PERSON_H



#include <iostream>

#include <string>



class Person {	



   friend std::ostream& operator<<( std::ostream&, const Person& );



public: 

   Person( std::string = "", std::string = "" ); // default constructor

   bool operator<( const Person& ) const;

   bool operator>( const Person& right ) const

   {

      return  right < *this;

   }



private:

   std::string firstName;

   std::string lastName;



};



#endif	// !defined PERSON_H