#include
#include
using namespace std;
int main()
{
vector a; // empty
vector b(5, 'X'); // size and initialize
vector c(b); // initialize with another vector
int i;
for(i = 0; i <5; i++)
a.push_back('A'+i);
// create a vector from a range
vector d(a.begin()+1, a.end()-1);
for(i = 0; i cout << "a[" << i << "]: " << a[i] << " ";
cout << "\n\n";
for(i = 0; i cout << "b[" << i << "]: " << b[i] << " ";
cout << "\n\n";
for(i = 0; i cout << "c[" << i << "]: " << c[i] << " ";
cout << "\n\n";
for(i = 0; i cout << "d[" << i << "]: " << d[i] << " ";
return 0;
}