"구조체"의 두 판 사이의 차이

잔글
18번째 줄: 18번째 줄:
<source lang='c'>
<source lang='c'>
typedef struct Point {
typedef struct Point {
   int   x;
   int x;
   int   y;
   int y;
} Point;
} Point;
</source>
</source>

2013년 9월 29일 (일) 21:23 판

1 개요

struct
구조체
  • 한 덩어리로 처리되는 변수 집합

2 예시 1

struct Point {
   int x;
   int y;
};
struct Point point1;

3 예시 2

typedef struct Point {
   int x;
   int y;
} Point;
Point point1;

4 같이 보기

5 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}