We could try having an array of pointers: #define NDIMS 3 typedef struct particle { double position[NDIMS]; double velocity[NDIMS]; double mass; } Particle; ...
確定! 回上一頁