cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
All Possible Arrangements of a word
All Possible Arrangements of a word
Oct 16, 2008 at 7:00pm UTC
aakashjohari
(33)
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
Oct 16, 2008 at 7:02pm UTC
Oct 16, 2008 at 8:50pm UTC
jsmith
(5804)
Please post in only one forum.
Oct 17, 2008 at 6:06am UTC
buffbill
(467)
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.