#include<iostream>
using namespace std;
struct student {
string name;
int age;
int score;
};
//方法三
struct student {
string name;
int age;
int score;
}s3;
int main() {
//方法一
struct student s1;
s1.name = "张三";
s1.age = 19;
s1.score = 100;
cout << s1.name << s1.age << s1.score << endl;
//方法二
struct student s2 = { "李四",19,90 };
cout << s2.name << s2.age << s2.score << endl;
//方法三
s3.name = "王五";
s3.age = 19;
s3.score = 90;
cout << s3.name << s3.age << s3.score << endl;
}





