当定义结构体数组时, 函数参数千万不要传数组索引
反复几次修改, 我发现传数组索引简直是个灾难...
程序代码:...
typedef struct {
int l;
char d[80];
} row;
typedef struct {
int l;
row d[80];
} paragraph;
typedef struct {
int r, c;
} position;
int main() {
paragraph t[10];
position history[100];
...
... t[i].row[history[j].r].d[history[j].c] ...
...
}







