结构体的声明和使用,指针形式的结构体
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
struct student {
char name[10];
char sex;
int score;
};
main()
{
struct student s1= {0},s2= {0},s3= {0},max= {0};
printf("Input data:\n");
scanf("%s %c%d",s1.name,&s1.sex,&s1.score);
scanf("%s %c%d&q......
阅读全文