#include <iostream>
#include <vector>
#include <list>
#include <deque>
using namespace std;
int main() {
//vector<int>::iterator it;
//vector<int> obV(4, 1);
list<int>::iterator it;
list <int> obV(3, 2);
//deque<int>::iterator it;
//deque<int> obV(4, 3);
cout << "the test before elements" << endl;
for ( it = obV.begin(); it !=obV.end(); ++it)
{
cout << *it << " ";
}
cout << endl<<"After push back 4" << endl;
obV.push_back(4);
for ( it = obV.begin(); it !=obV.end(); ++it)
{
cout << *it << " ";
}
cout << endl<<"pop the last element"<<endl;
obV.pop_back();
for ( it = obV.begin(); it !=obV.end(); ++it)
{
cout << *it << " ";
}
cout << endl;
system("pause");
return 0;
}