#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char*argv[])
{
//define the vector as v
vector<int>v;
v.push_back(1);
v.push_back(2);
v.push_back(3);
v.push_back(4);
v.push_back(5);
v.push_back(6);
v.push_back(8);
for(int i=0;i<v.size();i++)
//output the vector
{
cout<<v[i];
}
system("pause");
return 0;
}
output: 1,2,3,...8