例子:定义了一个结构体
typedef struct
{
unsigned charByte0;
unsigned charByte1;
unsigned charByte2;
unsigned charByte3;
unsigned charByte4;
unsigned charByte5;
unsigned charByte6;
unsigned charByte7;
unsigned charByte8;
}struct_temp;
下面有一句
struct_temp struct1;
这句是什么意思啊?
接下来使用了struct1做了一些定义
#define struct1.Byte0 学号
...
是不是“ struct_temp struct1; ” 是一种换名的语法? 麻烦大家解答~谢谢~~
typedef struct
{
unsigned charByte0;
unsigned charByte1;
unsigned charByte2;
unsigned charByte3;
unsigned charByte4;
unsigned charByte5;
unsigned charByte6;
unsigned charByte7;
unsigned charByte8;
}struct_temp;
下面有一句
struct_temp struct1;
这句是什么意思啊?
接下来使用了struct1做了一些定义
#define struct1.Byte0 学号
...
是不是“ struct_temp struct1; ” 是一种换名的语法? 麻烦大家解答~谢谢~~