发布网友 发布时间:2022-04-23 02:30
共1个回答
热心网友 时间:2023-07-11 02:05
CTestPermutation::~CTestPermutation()
{
cout<<">>>>>>>>>>>>>>>>>>>>>>>>CTestPermutation::~CTestPermutation()"<<endl;
}
void CTestPermutation::DoTest()
{
cout<<"-------将N个数进行排列组合-------"<<endl<<endl;
vector<int> vecNums,vecPermutated;
cout<<"示例数据:";
for(int i = 1; i < 5;i++)
{
vecNums.push_back(i);
cout<<i<<" ";
}
cout<<endl;
cout<<"排列组合结果:"<<endl;
Permutation(vecPermutated,vecNums);
}追问谢谢您的回答,本人确实对这些一窍不通,您能把以上数据代入后所生成的所有组合发过来吗?不胜感激!