69,371
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
struct student
{
int num;
char *name;
char sex;
float score;
};
int main(void)
{
struct student inf[5]=
{
{98310,"姜雪年",'B',100},
{98311,"吕庆",'B',99},
{98312,"官瑞铭",'B',95},
{98313,"张时成",'B',91},
{98314,"朱诗奇",'G',100},
};
printf("%d %s %c %4.1f",inf[0].num,inf[0].name,inf[0].sex,inf[0].score);
getch();
}