编辑代码

#include <stdio.h>
int main () {
    struct stu{
        int num;
        char name[20];
        char sex;
        float score;
    };
    struct stu boy1,boy2;
    boy1.num = 20;
    boy2.num = 30;
    printf("%d\n%d", boy1.num,boy2.num);
	return 0;
}