/* * C++ Program to Generate All Permutations using BackTracking */ #include #include #include #include using namespace std; /* swap values at two pointers */ void swap (char *x, char *y) { char temp; temp = *x; *x = *y; *y = temp; } /* print permutations of string */ void permute(char *a, int i, int n) { int j; if (i == n) cout<