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

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 12:42:01

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

写一个函数,输出字符串中字符的所有排序.(比如: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