不知道广陵写的结构体是什么样子,我试着模仿了一下:
程序代码:
我这个是可以运行的。我用的是MinGW。

#include <stdio.h> #define M 2 typedef struct { float f[M]; }Test; int main(void) { Test t[M]; int i, j; for (i = 0; i < M; i++) { for(j = 0; j < M; j++) { scanf("%f", &t[i].f[j]); } } for (i = 0; i < M; i++) { for(j = 0; j < M; j++) { printf("%10f", t[i].f[j]); } } return 0; }
我这个是可以运行的。我用的是MinGW。

前不见古人,后不见来者。念天地之悠悠,独怆然而涕下。