怎么用程序来完成以下的 定义结构体和赋值
参数是num
N=unm
struct MacID_Struct MacS[MacNum]={{0x01,"50"},{0x02,"60"},{0x03,"46"},{0x04,"52"},{0x05,"58"},{0x06,"46"},{0x07,"40"},{0x08,"49"}……",{0x0N,"46"}};//三个机器的001,臂长50米;002,臂长60m,003,臂长50m
[解决办法]
struct MacID_Struct
{
unsigned char num;
unsigned char strnum[3];
}
[解决办法]
多个的话就可以定义成 struct MacID_Struct的数组了。
[解决办法]