博主从来都不多说废话,直接上代码!!!
#include<iostream>
using namespace std;
template<class Type>
void Swap(Type &a,Type &b)//交换函数
{
Type c = a;
a = b;
b = c;
}
void Perm(int *ar,int k,int m)
{
if(k == m)
{
for(int i = 0;i<=m;++i)
{
cout&l