代码: 全选
#include xxxxx
#include "Student_info.h"
int main() {
vector<Student_info> students;
Student_info record;
while (read(cin, record)) {
maxlen = max(maxlen, record.name.size());
students.push_back(record);
}
}
代码: 全选
struct Student_info {
std::string name;
double midterm, final;
std::vector<double> homework;
};