ciao mico90,
ho creato un file strutture.cpp come segue (se ci sono errori segnala):
#include "strutture.h"
bool operator==(coordinate x, coordinate y) {
return ((x.x1 == y.x1) && (x.x2 == y.x2) && (x.y1==y.y1) && (x.y2==y.y2)); };
adesso non ho errore del linker ma il compilatore mi dice:
1) C:\Documents and Settings\steros84... \strutture.cpp In function `bool operator== (coordinate, coordinate)'
2)redefinition of `bool operator==(coordinate, coordinate)'
3)C:\Documents and Settings\steros84...strutture.h `bool operator==(coordinate, coordinate)' previously defined here
boooh
attendo vostre segnalazioni,
ciao e grazie