我想在結(jié)構(gòu)體中嵌入結(jié)構(gòu)體,不知道這樣是否可行?請大家?guī)臀铱纯粗笇б幌?br />
typedef struct Register
{
struct RegisterRequest
{
short UnitLength;
byte UnitType; // 0x01 is for RegisterRequest
short LocalApplyPort;
long double LocalApplyID;
}tRegisterRequest;
struct RegisterReply
{
short UnitLength;
byte UnitType; // 0x02 is for RegisterReply
byte Return; // return 0 if it is successful, return other number if not successful
}tRegisterReply;
}tRegister;
可以加QQ交流啊2685896890 |
|