Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Templates 010编辑器模板问题_Templates_Hex_Binaryfiles - Fatal编程技术网

Templates 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

我试图用“010编辑器”创建模板,并得到以下问题。 数组大小与长度变量不匹配

模板:

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节[长度];。