编辑代码

#if 1 
#include <stdio.h>
struct Student{
    char name[10];
    int age;
    float score;
};

void Scanf(struct Student *stu){
    printf("please input name, age and score:");
    scanf("%s", stu->name);
    scanf("%d", &(stu->age));
    scanf("%f", &(stu->score));
    printf("%s\t%d\t%lf\n", stu->name, stu->age, stu->score);
}
int main () {
    struct Student teacher;
    Scanf(&teacher);
    printf("%s\t%d\t%lf\n", teacher.name, teacher.age, teacher.score);
	return 0;
}

#endif