现在的位置: 首页 > 综合 > 正文

2010.08.26 草稿

2014年11月15日 ⁄ 综合 ⁄ 共 929字 ⁄ 字号 评论关闭
#include
#include

int main()
{
using std::vector;
using std::cout;
using std::endl;

vector vecIntPtr;

int* vecIntElem1 = new int(11);
vecIntPtr.push_back(vecIntElem1);

int* vecIntElem2 = new int(22);
vecIntPtr.push_back(vecIntElem2);

int* vecIntElem3 = new int(33);
vecIntPtr.push_back(vecIntElem3);

for (int i = 0; i != 3; ++i)
{
cout vecInt;
vecInt.push_back(111);
vecInt.push_back(222);
vecInt.push_back(333);

cout ::iterator it_vecInt = vecInt.begin();
++it_vecInt;
cout






抱歉!评论已关闭.