#include <iostream> using namespace std; typedef unsigned char BYTE; enum Color {RED = 0x01,BLUE,GREEN,YELLOW,BLACK}; #ifdef _MSC_VER #pragma pack(push,8) #endif struct Sedan { double m_price; Color m_color; bool m_hasSkylight; bool m_isAutoShift; BYTE m_seatNum; }; #ifdef _MSC_VER #pragma pack(pop); #endif