Permutation

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <algorithm> int main () { char chars[] = {'a', 'b', 'c'}; int n = 3; std::sort (chars, chars+n); do { std::cout << chars << '\n'; } while ( std::next_permutation(chars, chars+n) ); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines