#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<char> vectorObject;
int i;
for(i = 0; i <26; i++)
vectorObject.push_back('A'+i);
cout << "Original contents of vectorObject:\n";
for(i = 0; i <vectorObject.size(); i++)
cout << vectorObject[ i ];
cout << endl;
random_shuffle(vectorObject.begin(), vectorObject.end());
cout << "Shuffled contents of vectorObject:\n";
for(i = 0; i <vectorObject.size(); i++)
cout << vectorObject[ i ];
return 0;
}
|