Possible Duplicate:
Program to print permutations of given elements
所以,我有数字 153,我的程序需要输出 - 135、153、315、351、513、531。换句话说,所有可能的数字。有什么想法如何做到这一点吗?
最佳答案
从 int 更改为 string,然后更改为字符数组。然后使用嵌套循环。
关于C - 找出所有不同的数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13825554/