嵌套链表测试
#include<stdio.h>
#include<string.h>
typedef struct myneme
{
char name[20];
}my;
typedef struct mynemes
{
my kau;
int hime;
}mys;
int main()
{
mys q[2] = {
{
"wangyang",20
},
{
"liyang",30
}
};
mys* p;
p = q;
printf("%s", p->kau);
return 0;
}
#include<string.h>
typedef struct myneme
{
char name[20];
}my;
typedef struct mynemes
{
my kau;
int hime;
}mys;
int main()
{
mys q[2] = {
{
"wangyang",20
},
{
"liyang",30
}
};
mys* p;
p = q;
printf("%s", p->kau);
return 0;
}
请问这是什么情况,本意是想试试嵌套链表
[此贴子已经被作者于2019-9-20 11:27编辑过]