#include<iostream>
#include<iomanip>
#include<string>
using namespace std;
struct student
{
char *name;//姓名
string number;//学号
double score;//成绩
};
int main()
{
student S1,S2;
S1.name="张三";
S1.number="0301114";
S1.score=76.5;
S2.name="李四";
S2.number="0301115";
S2.score=90;
double ss=(S1.score+S2.score)/2;//平均分
cout<<setw(8)<<S1.name<<setw(8)<<S1.number<<setw(8)<<S1.score;
cout<<endl;
cout<<setw(8)<<S2.name<<setw(8)<<S2.number<<setw(8)<<S2.score;
cout<<endl;
cout<<"平均成绩是"<<ss<<endl;
return 0;
}
//应该是这样