开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
Dev C++
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
应该没有吧
问题(Question):
使用者输入数字后, 输出所有可能之排列.
喂入的资料(Input):
假设是3好了
预期的正确结果(Expected Output):
[1] 1, 2, 3
[2] 1, 3, 2
[3] 2, 1, 3
[4] 2, 3, 1
[5] 3, 1, 2
[6] 3, 2, 1
错误结果(Wrong Output):
无
程式码(Code):(请善用置底文网页, 记得排版)
http://ideone.com/7iBiyM
补充说明(Supplement):
分为 "不使用递回" 和 "使用递回" 两种状况
我先不用递回写