#include
#include
#include
int main()
{
using std::vector;
using std::cout;
using std::endl;
vector
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
- 上一篇草稿
- 下一篇引发异常时, 编译器总是创建一个临时拷贝...