STL容器vector

时间:2018-05-18 04:16:53
【文件属性】:
文件名称: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< 立即下载

【文件预览】:
STL
----STL.ncb(25KB)
----STL.opt(37KB)
----STL.dsw(331B)

网友评论