#include <stdio.h>

int main(){
    struct Student{
        int num;
        char name[10];
        float score;
    }
    stu1={1001,"zhangsan",89},
    stu2={1002,"lisi",96};
    printf("%dt%st%.2fn",stu1.num,stu1.name,stu1.name,stu1.score);
    printf("%dt%stt%.2fn",stu2.num,stu2.name,stu2.name,stu2.score);

    return 0;
}

标签: none

添加新评论