Competitive Programing Problem Solutions/Virtual Judge/M5/id_c.cpp
void permute(string str)
{
    // Sort the string in lexicographically
    // ascennding order
    //sort(str.begin(), str.end());

    // Keep printing next permutation while there
    // is next permutation
    do {
       cout << str << endl;
    } while (next_permutation(str.begin(), str.end()));
}
// Function to print permutations of string str
// using next_permute()

Function to print permutations of string str
using next_permute()
Function to print permutations of string str using next_permute ()
void permute(string str)
{
    do {
       cout << str << endl;
    } while (next_permutation(str.begin(), str.end()));
}
void permute ( string str ) { do { cout << str << endl ; } while ( next_permutation ( str . begin ( ) , str . end ( ) ) ) ; }
Function to print permutations of string str
using next_permute()
Function to print permutations of string str using next_permute ()
// Sort the string in lexicographically
 // ascennding order
 //sort(str.begin(), str.end());
 // Keep printing next permutation while there
 // is next permutation
