Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  ddd
Language: C/C++
Code:
#include<iostream>
#include<deque>
#include<list>
#include<vector>

using namespace std;

int main()
{
    vector<int> ilist={1,2,3,4,5};
    auto begin=ilist.begin();
    while(begin!=ilist.end())
    {
        begin++;
        ilist.insert(begin,42);
        begin++;
    }
    
    for(auto c:ilist) cout<<c<<" ";
    cout<<"shit";
    return 0;
}
Comments: