#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main()
{
vector<int> v2;
for(int i=1;i<=10;i++)
v2.push_back(i);
for(vector<int>::iterator it = v2.begin(); it!= v2.end();++it )
{
cout<<*(it)<<endl;
}
system("pause");
}
#include<string>
#include<vector>
using namespace std;
int main()
{
vector<int> v2;
for(int i=1;i<=10;i++)
v2.push_back(i);
for(vector<int>::iterator it = v2.begin(); it!= v2.end();++it )
{
cout<<*(it)<<endl;
}
system("pause");
}