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
| // STNoeud.h
class STNoeud {
public:
string mot;
CTListe<CTElem <int> > liste;
public:
friend bool operator!= (const STNoeud& noeud1, const STNoeud& noeud2);
friend bool operator< (const STNoeud& noeud1, const STNoeud& noeud2);
friend bool operator> (const STNoeud& noeud1, const STNoeud& noeud2);
};
// === Opérateurs
bool operator!= (const STNoeud& noeud1, const STNoeud& noeud2)
{ return (noeud1.mot != noeud2.mot); }
bool operator< (const STNoeud& noeud1, const STNoeud& noeud2)
{ return (noeud1.mot < noeud2.mot); }
bool operator> (const STNoeud& noeud1, const STNoeud& noeud2)
{ return (noeud1.mot > noeud2.mot); } |