我在使用C语言中的struct
时遇到了问题。
非常奇怪!!!
我无法在student
结构体中使用course
结构体。
虽然我之前已经定义过,但为什么会这样呢?
struct course
{
int no;
char name[30];
int credits;
float score;
};
struct student
{
int no;
char name[50];
course c[3];
};
我的语言是c而不是c++