请教一个关于union问题
我在 STVD中使用 union 共同体typedef union
{
int Int ; //整数类型
unsigned char un_Char ; //字节类型
} UN_Byte2Int;
int ByteToInt(unsigned char Byte[])
{
UN_Byte2Int PChange;
PChange.un_Char = Byte;
return PChange.Int;
}
竟然报错 我在 IAR 和 Keil中 测试是好的啊 (但是结构可以用啊)
请教 在STVD中如何使用 谢谢
RE:请教一个关于union问题
我去试试看啊,应该没问题才对哈
页:
[1]