자료구조

2020. 4. 15. 23:13자료구조

구조체(typedef로 struct 키워드 없이 구조체 선언하기)

typedef struct stack{
	char name[20];
}stack;// 구조체 별칭

int main()
{
    struct stack p1; 
    stack p1;//간단해짐
}

 

'자료구조' 카테고리의 다른 글

자료구조 - RL로 미로탐색  (0) 2020.04.21