排列生成算法

#include<iostream>#include<sstream>#include<algorithm>using namespace std;int main(){ int array[] = {0,1,2,3,4,5,6,7,8,9,10}; int size = sizeof(array)/sizeof(int); int n; cin >> n; int* *index = new int*[size]; for(int i = 0; i < size; ++i) index[i] = array+i; int j ...
默认分类 | 2010-12-24 15:26 | 阅读 1213 次 | 评论 0 条
浏览31021次