All Possible Arrangements of a word

I want to make a program that prints all the possible arrangements of a given word.
As Input - abc
abc
bca
cab
acb
bac
cba
Last edited on
Please post in only one forum.
There is a standard C++ generic algorithm named next_permutation() defined in the algorithm header file. It can be handled with a for loop with the condition set to< (in this case) 3!
Topic archived. No new replies allowed.