我目前没有代码,因为我根本不知道该如何做到这一点。我能否自己计算一下每个低层支架需要多少字节,然后用它来进行折叠?这是非常糟糕的编码,不是吗?这就是我试图拼凑起来的两个字节:
struct property {
int d;
char name [111]; // I just malloc this like I would a normal array, right?
char descr [1025]; // Ditto.
}
struct category {
int d [413]; // The d s of all the child structs sorted highest to lowest.
char name [111];
struct property property [413]; // This. How do I allocate this?
}</code>
我是否必须做 < code> struct property* property * property = (struct property *) cloc (( struct property) * 413); ? 数组内的圆球是否完好无损? 阵列中的圆球一般如何表现?