【文件属性】:
文件名称:STL容器vector
文件大小:2KB
文件格式:RAR
更新时间:2018-05-18 04:16:53
stl
vector
list容器#include "stdafx.h"
#include
#include
using namespace std;
struct student
{
int id;
string name;
float height;
};
int main(int argc, char* argv[])
{
vector onit;
cout<<"请输入相关学生数据:"<>Student.id;
/*cin>>Student.name;*/
cin>>Student.height;
vector::iterator cit;
cit=onit.end();
onit.insert(cit,Student);
cout<<"你插入的学生信息为:"<name<id<height<
立即下载