티스토리 뷰
// 구조체 여러개 설정할때 쓰이는 변수 구조 선언
struct book
{
char book_name[50];
char book_author[50];
char book_public[50];
int page;
int price;
};
//각각 구조체를 하나의 변수로 설정할때
struct
{
char book_name[50];
char book_author[50];
char book_public[50];
int page;
int price;
}book_2;
struct
{
char name[50];
char author[50];
char public_bk[50];
int page;
int price;
}book_different_type;
//변수구조선언(ex. struct name)를 원하는 이름으로 구문선언
typedef struct
{
char name[50];
int number;
int size;
int price;
} book_new_name;
