语法*第九章*2 结构体初始化及定义

#include<stdio.h>
struct student{
   int num;
   char name[20];
   float score;
};
 int main(void){
   struct student s1={20,"bowen",89.0};
   printf("%d %s %f",s1.num,s1.name,s1.score);
}

 

posted @ 2018-04-30 09:54  sunnybowen  阅读(179)  评论(0编辑  收藏  举报