C++day7模板、异常、auto关键字、lambda表达式、数据类型转换、STL、list、文件操作
作业封装一个学生的类,定义一个学生这样类的vector容器,里面存放学生对象(至少3个)再把该容器中的对象,保存到文件中。再把这些学生从文件中读取出来,放入另一个容器中并且遍历输出该容器里的学生。#include#include#includeusingnamespacestd;classStu{friendifstream&operator>>(ifstream&cin,Stu&s);frien