[C#] 구조체(struct)란?
·
언어/C#
구조체(struct)란 데이터 관련 기능을 캡슐화해놓는 형식이다. https://codingjin0424.tistory.com/18 [C] 구조체 - 고양이 뽑기 게임 #include #include #include typedef struct { char* name; int age; char* character; int level; } CAT; int collection[5] = { 0,0,0,0,0 }; CAT cats[5]; void initCats(); void printCat(int collect); int c.. codingjin0424.tistory.com 예전에 했던 고양이 뽑기 게임처럼 내가 원하는 고양이의 정보를 모아놓은 구조체를 통해 고양이 정보를 사용할 수 있다.