摘要: 利用sort(s.begin(),s.end()); 不能用sort(s,s+lengrh()); 阅读全文
posted @ 2020-03-09 18:28 John-C 阅读(1203) 评论(0) 推荐(1)
摘要: 1.sort(a,a+n) //排序函数 不用多说了 2. tolower() 函数是把字符串都转化为小写字母 touppre() 函数是把字符串都转化为大写字母 3. next_permutation(a,a+n) //全排列函数 next_permutation函数 组合数学中经常用到排列,这里 阅读全文
posted @ 2020-03-09 18:25 John-C 阅读(366) 评论(0) 推荐(0)