#include<iostream>
using namespace std;
#include <string>
struct Student
{
string name;
int age;
int score;
};
int main(){
struct Student s1;
s1.name = "peter";
s1.age = 22;
s1.score = 100;
cout << "姓名:" << s1.name << "年龄:" << s1.age << "分数:" << s1.score << endl;
struct Student s2 = {"marry",19,80};
cout << "姓名:" << s2.name << "年龄:" << s2.age << "分数:" << s2.score << endl;
struct Student
{
string name;
int age;
int score;
}s3;
s3.name = "ksd";
s3.age = 29;
s3.score = 70;
cout << "姓名:" << s3.name << "年龄:" << s3.age << "分数:" << s3.score << endl;
system("pause");
return 0;
}