반응형
    
    
    
  | 1 2 3 4 5 6 7 8 9 10 11 | struct student { int num; char name[10]; int classs; }; struct student box1;   //기본적인 사용법 | Crocus | 
=============================================================
| 1 2 3 4 5 6 7 8 9 | struct student { int num; char name[10]; int classs; }box1;             //구조체를 선언과 동시에 지정 | Crocus | 
==============================================================
typedef 이용법
| 1 2 3 4 5 6 7 8 9 10 11 | typedef struct student { int num; char name[10]; int classs; }ABC; //구조체에 별명을 지어준다. ABC box1; | Crocus | 
반응형
    
    
    
  'Basic > C' 카테고리의 다른 글
| 기본 입출력 함수의 이해 , 데이터 형 (0) | 2015.03.07 | 
|---|---|
| C언어의 개요 (어셈블리 언어 , 고급 언어, 컴파일러, 인터프리터 등) (0) | 2015.03.07 | 
| 구조체와 포인터 예제 (0) | 2015.03.07 | 
| malloc, free함수 예제 (0) | 2015.03.07 | 
| 함수와 포인터 기본 예제 (0) | 2015.03.07 |