大大们,嵌套结构体怎么赋值?
#include<stdio.h>struct stu
{
int eag;
char name[8];
int ddouble;
}boy2,boy1={17,"小白",5};
void main()
{
boy2=boy1;
printf("年龄:%d ",boy2.eag);
printf("姓名:%s ",boy2.name);
printf("次序:%d\n",boy2.ddouble);
}
**************************************************************
#include<stdio.h>
struct score
{
float ch;
float sh;
float eh;
float wu;
float li;
float hw;
};
struct
{
char number[13];
char Class[4];
char sex[2];
char name[10];
int age;
struct score ally;
int id[20];
}boy1,boy2;
boy1={"01753326","3(2)","男","小白",17,{96,74,64,76,62,84},"240066198610203316"};
上边的结构体赋值对了,下边的嵌套怎么赋值啊?