Full Permutations Generator

This program is to generate full permutations.
There are three algorithms available: Recursive method, SJT(Switch) method and Lexicographical ordered method
You can input the order number of full permutations, and the full permutations are generated as follows.
The corresponding C++ code is shown at the bottom.

Input the order number(1-5):