A permutation of three objects, a, b, and c, is any arrangement of these objects in a row. For example, some of the permutations of these objects are abc, bca, and cab. The number of permutations of three objects is six. Suppose that these three objects are strings. Write a program that prompts the user to enter three strings. The program then outputs the six permu- tations of those strings
#include <iostream>
usingnamespace std;
int main(int argc, constchar * argv[])
{
string objects[3];
for (int i = 0, k = 1; i < 3; i++, k++) {
cout << "Please enter a string: " << endl;
cin >> objects[i];
if (k == 3) {
cout << "We made it here: debug print" << endl;
for (i = 0; i < 3; i ++) {
// enter permutation function call here...
}
}
}
return 0;
}