结构体应用

#pragma pack(1)///////////对齐方式
typedef struct
{
 stru_preHead preHead;
 stru_frameHead frameHead;

 byte DI0;
 byte DI1;

 byte DI;
 byte TIME[7];
 byte kWH[20];

 byte CS;
 byte fTerminator;

}stru_GateWarn;
#pragma pack()////////////////////

你可能感兴趣的:(struct,byte)