成想 2015-05-07 14:11 采纳率: 40%
浏览 3205

C语言结构体数组与顺序表的问题

#define DataType struct students cla[3]

struct students
{
long code;
char *name;
float score[3];
float sum;
};

typedef struct
{
DataType list[MaxSize];
int length;
}SeqList;

SeqList *t;

我要修改到list[0]里结构体数组cla[0]中的code元素,应该怎么写??
下面的代码可以吗?
scanf("%d",t->cla[0]->list[0].code);

  • 写回答

4条回答 默认 最新

  • 成想 2015-05-07 14:17
    关注

    貌似define那里就过不去。。

    评论

报告相同问题?