Du kannst eine Funktion schreiben, die alle Member miteinander vergleicht.
int comparePoints(Point p1, Point p2) {
if (p1.x == p2.x && p1.y == p2.y) {
return 0;
} else {
return 1;
}
}
Point point1 = {1, 2};
Point point2 = {1, 2};
if (comparePoints(point1, point2) == 0) {
} else {
}