반응형 2016/09/021 2016-09-02_조재찬_스터디일지_C언어-리스트에 구조체 변수 저장 리스트에 구조체 변수 저장하기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 #ifndef __POINT_H__ #define __POINT_H__ typedef struct _point { int xpos; int ypos; } Point; // Point 변수의 xpos, ypos 값 저장 void SetPointPos(Point * ppos, int xpos, int ypos); // Point 변수의 xpos, ypos 정보 출력 void ShowPointPos(Point * ppos); // 두 Point 변수의 비교 int PointComp(Point * pos1, Point * pos2); #endif Point.c (PointComp 함수의 반환값은 .. 2016. 9. 2. 이전 1 다음 728x90 반응형