구조체의 포인터 선언

// student 
: 13바이트 가정
// struct 태그 * 포인터변수;
struct student * s;

구조체의 포인터와 변수 연결

// struct 태그 * 포인터변수 = 구조체의 다른 변수의 주소값;
struct student * s = (stuednt *) malloc(sizeof(student))

구조체의 포인터에 값 할당

// (*포인터변수).맴버 or 포인터변수->맴버
(*s).name = gunwoo
s->name = mutsin

구조체의 포인터를 맴버로 가지는 구조체

struct student {
	struct stuednt * next;
}

Tip : pcaked는 구조체의 크기가 본래의 크기로 만드는 내장함수(because 구조체의 크기는 짝수로 만드려는 성질이 있기 때문)

#pragma packed(push,1)
	구조체 정의
#pragma packed(pop)

Tip : typedef(type define, 별명붙이기)

// typedef 자료형 별명
typedef int 정수;
정수 = 1;

typedef struct Gameinfo 게임정보;
게임정보 롤; // 게임정보라는 새로운 자료형에 롤이라는 변수 선언
롤.특징 = " ";

// typedef를 구조체에서 사용할 때 구조체 선언할 때 중괄호와 ";" 사이에 별명을 넣어도 된다
typedef struct Gameinfo {
	char name = " ";
}게임정보;