国产精品免费无遮挡无码永久视频-国产高潮视频在线观看-精品久久国产字幕高潮-国产精品99精品无码视亚

查看: 2880|回復(fù): 0
打印 上一主題 下一主題

結(jié)構(gòu)體的定義問(wèn)題

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
發(fā)表于 2017-4-10 14:47:28 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
我想在結(jié)構(gòu)體中嵌入結(jié)構(gòu)體,不知道這樣是否可行?請(qǐng)大家?guī)臀铱纯粗笇?dǎo)一下
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

本版積分規(guī)則

關(guān)于我們  -  服務(wù)條款  -  使用指南  -  站點(diǎn)地圖  -  友情鏈接  -  聯(lián)系我們
電子工程網(wǎng) © 版權(quán)所有   京ICP備16069177號(hào) | 京公網(wǎng)安備11010502021702
快速回復(fù) 返回頂部 返回列表