写一个函数,输出字符串中字符的所有排序.(比如:abc acb bac bca cab cba )

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/25 22:19:14

写一个函数,输出字符串中字符的所有排序.(比如:abc acb bac bca cab cba )

#include
#include
Permutation(char a[],int start,int end)
{
int i,j;
char temp;
if(start == end)
{
for(i = 0; i