摘要: // next_permutation#include <iostream>#include <algorithm>using namespace std;int main () { int myints[] = {1,2,3}; cout << "The 3! possible permutations with 3 elements:\n"; sort (myints,myints+3); do { cout << myints[0] << " " << myints[1] &l 阅读全文
posted @ 2011-11-09 15:47 zxfx100 阅读(207) 评论(0) 推荐(0) 编辑