Hi, I just tried to display a permuttion of n number, i.e. 1,2,3,4. the I want to disply this permutation
using C++ code, I just can't figure out the correct algorithum to manupulat it.
the result should be looks like;
1,2,3,4
1,2,4,3
1,3,2,4
1,3,4,2
1,4,2,3
1,4,3,2
......
the total display lines should be 24 (=4!). could some one figure out the algorithum?
thanks;