摘要: STL的应用。想到全排列就想到了STL中的 next_permutation() 函数。用字符串读取输入,用 sort() 对其进行排序,再用 next_permutation() 输出结果。代码如下: c++ include include include include include incl 阅读全文
posted @ 2018-10-08 23:25 Cantredo 阅读(91) 评论(0) 推荐(0)