#include #include struct point { int x; int y; }; void comparePoint(struct point p1, struct point p2) { if (p1.x == p2.x && p1.y == p2.y) { printf("p1과 p2와 같습니다."); } } // 이렇게 함수를 사용하는것이 더 체계적이다. // 왜냐하면 point라는 구조체 하나만 비교를 할 수있는 함수이기 때문이다. int main(void) { struct point p1, p2; p1.x = 30; p1.y = 10; p2.x = 30; p2.y = 10; /* if(p1 == p2){ printf("p1과 p2는 같습니다"); } 라는 표현이 안된다. p1과 p2자체는 비교가 안되기 때문..