#include
#include
#include
using namespace std;
int main()
{
vector v(10); // create a vector of length 10
cout << "Size = " << v.size() << endl;
for(int i=0; i<10; i++)
v[i] = i + 'a';
cout << "Current Contents:\n";
for(int i=0; i cout << "\n\n";
for(int i=0; i v[i] = toupper(v[i]);
cout << "Modified Contents:\n";
for(int i=0; i cout << v[i] << " ";
cout << endl;
return 0;
}
Size = 10
Current Contents:
a b c d e f g h i j
Modified Contents:
A B C D E F G H I J