我创建了一个名为Register的结构,其中包含大约8个字段。我现在想要创建一个名为Instrument的结构,它应该有一个可变数量的字段,这对每个仪器来说都是相同的,再加上一定数量的字段,这取决于归因于它的寄存器数量。我如何创建这个? 为了清楚起见,我想创建(虽然可能不准确)。 typedef struct {
int x;
int y;
int z;
} Reg
我想为使用Flexarray的结构分配内存。我这样接受它,我必须像这样实现它。 的结构是这样的: struct _XPM {
unsigned int width;
unsigned int height;
unsigned char cpp;
unsigned int ncolors;
Color *colta;
unsigned i