자료형중에서 구조체에 관해서 얘기해보고자 합니다.^^
여러분들은 어떻게 사용하세요?
저의 경우는...
struct _Contact
{
int iNum;
char strDisplayName[128];
char strLastName[64];
char strFirstName[64];
};
typedef struct _Contact CONTACT;
typedef CONTACT * Contact;
or
struct _Contact
{
int iNum;
char *szDisplayName;
char *szLastName;
char *szFirstName;
};
typedef struct _Contact CONTACT;
typedef CONTACT * Contact;
이렇게 사용합니다.(아직 자료형 꾸미는것도, 헝가리안도 서툽니다.ㅡㅡ)