#include <stdio.h>
struct me;
struct you;
typedef struct me
{
char name[5];
char xing;
int yues;
you shuzi;
}HER;
struct you
{
int d1;
int d2;
};
HER he[2];
typedef enum stem { WO, NI, TA }STEM;
STEM wo;
int main() //结构体
{
HER he[2] = { {"王磊", '男', 18, { 88,25 }},
{"瑞华", '女', 19, { 77,15 }}
};
}
错误是
9行 me::shuzi使用未定义的struct you 不应该啊我定义了啊
23行 初始化,无法从"initializer list"转换为“int” 这个更看不懂了
struct me;
struct you;
typedef struct me
{
char name[5];
char xing;
int yues;
you shuzi;
}HER;
struct you
{
int d1;
int d2;
};
HER he[2];
typedef enum stem { WO, NI, TA }STEM;
STEM wo;
int main() //结构体
{
HER he[2] = { {"王磊", '男', 18, { 88,25 }},
{"瑞华", '女', 19, { 77,15 }}
};
}
错误是
9行 me::shuzi使用未定义的struct you 不应该啊我定义了啊
23行 初始化,无法从"initializer list"转换为“int” 这个更看不懂了


