If that were true, then the value of place should be zero (as that is what it initially started out with). The fact that it's 1 has baffled me.
Type: Posts; User: vasiqshair
If that were true, then the value of place should be zero (as that is what it initially started out with). The fact that it's 1 has baffled me.
#include <iostream>
#include <string>
using namespace std;
string swtch(string topermute, int x, int y)
{
string newstring = topermute;
newstring[x] = newstring[y];
newstring[y] =...
My question refers to the Programming Challenge section of the website wherein one of the challenges is about determining the Permutations of a string. That solution of that program has me pulling my...