Templates 010编辑器模板问题
我试图用“010编辑器”创建模板,并得到以下问题。 数组大小与长度变量不匹配 模板:Templates 010编辑器模板问题,templates,hex,binaryfiles,Templates,Hex,Binaryfiles,我试图用“010编辑器”创建模板,并得到以下问题。 数组大小与长度变量不匹配 模板: typedef struct { int length; char value[length]; } MyString ; typedef struct { int index; MyString caption; } MySection; typedef struct { int length; MySection section[le
typedef struct {
int length;
char value[length];
} MyString ;
typedef struct {
int index;
MyString caption;
} MySection;
typedef struct {
int length;
MySection section[length];
} MySections;
struct FILE {
MySections s;
}file;
二进制:
02 00 00 00 01 00 00 00 1D 00 00 00 71 70 73 72
75 74 77 76 79 78 7B 7A 7D 7C 7F 7E 61 60 63 62
65 64 67 66 69 68 6B 6A 6D 02 00 00 00 21 00 00
00 61 60 63 62 65 64 67 66 69 68 6B 6A 6D 6C 6F
6E 71 70 73 72 75 74 77 76 79 78 7B 7A 7D 7C 7F
7E 41
解释我错在哪里。解决了。MySection节[长度];。解决了的。MySection节[长度];。