#include <stdio.h>标签:做个,int,s1,sex,char,今天,printf,自我介绍,id From: https://blog.51cto.com/u_15861426/5920864
struct Stu
{
char name[20];
int age;
char sex[5];
char id[15];
};
int main()
{
struct Stu s1 = { "花有缺小鱼儿", 99, "男", 195195 };
printf("姓名:%s\n", s1.name);
printf("年龄:%d岁\n", s1.age);
printf("姓别:%s\n", s1.sex);
printf("ID号:%d\n", s1.id);
return 0;
}