摘要: void Swap(int &a,int &b){ int temp=a; a=b; b=temp;}void Perm(vector& list, int k, int m){ if(k==m) { for(int i=0; i<=m; i++) cout << list[i]; cout << endl; } else for(int j=k; j<=m; j++) { Swap(list[k],list[j]); ... 阅读全文
posted @ 2013-08-03 20:26 ledao 阅读(271) 评论(0) 推荐(0) 编辑