7 |
|
#ifndef _Person_hpp_ |
8 |
|
#define _Person_hpp_ |
9 |
|
|
10 |
< |
#include <sql.h> |
10 |
> |
//#include <sql.h> |
11 |
|
|
12 |
|
#include "Smersh.hpp" |
13 |
|
|
27 |
|
} |
28 |
|
void clearMultiple() { multiple.clear(); } |
29 |
|
Person& operator=(const Person& person) { name = person.name; } |
30 |
+ |
bool operator==(const Person& person) const { return name == person.name; } |
31 |
+ |
bool operator<(const Person& person) const { return name < person.name; } |
32 |
|
// friends: |
33 |
|
friend ostream& operator<<(ostream& sout, const Person& person) { return |
34 |
|
sout << person.name; } |