Printing all the permutations of a string in alphabetical order
A boolean tested each time, and firing just once on the first iteration is unaesthetic (and a waste of time). Consider instead

    std::cout &lt;&lt; record;
    while (std::next_permutation(record.begin(), record.end())) {
        std::cout &lt;&lt; ',' &lt;&lt; record;
    }
    std::cout &lt;&lt; '\n';


Otherwise looks good. Congratulations for not using namespace std.