vector<struct> student 如何给成员传值
#include<iostream>#include<vector>
#include<algorithm>
#include<string>
using namespace std;
struct student
{
string name;
double midterm;
double final;
vector<double> homework;
};
void main()
{
vector<student> vec;
.................
//如何给结构体成员传值!!
//求高手指教~~~
}