// 用在向量里
struct stVec
{
union
{
struct
{
unsigned int x, y, z;
};
struct
{
unsigned int xyz[3];
};
};
};
// 用在按位表示的数值类型里
struct stSequence
{
union
{
struct
{
unsigned char x, y, z, w;
};
struct
{
unsigned int sid;
};
};
};
union 应用
最新推荐文章于 2022-04-27 15:39:01 发布