#include
#include
#include
#include
using namespace std;
int main()
{
vector v(20);
list listObject;
int i;
for(i = 0; i <20; i++)
v[i] = 'A' + i;
cout << "Original contents of vector:\n";
for(i = 0; i cout << v[i] << " ";
cout << "\n\n";
char str[] = "-STL Power-";
for(i = 0; str[i]; i++)
listObject.push_back(str[i]);
copy(listObject.begin(), listObject.end(), v.begin());
// display result
cout << "Contents of vector after copy:\n";
for(i = 0; i cout << v[i] << " ";
return 0;
}