上一页 1 ··· 6 7 8 9 10
摘要: 引用: 想起来自己天天排序排序,冒泡啊,二分查找啊,结果在STL中就自带了排序函数sort,qsort,总算把自己解脱了~ 所以自己总结了一下,首先看sort函数见下表: 要使用此函数只需用#include <algorithm> sort即可使用,语法描述为: sort(begin,end),表示 阅读全文
posted @ 2018-07-22 15:52 pha创噬 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 想用sort()函数需要加上 #include <algorethm>这个头文件; sort(begin,end)表示一个范围; 如例子: #include <iostream>#include <algorithm>using namespace std;int main(void){ int a 阅读全文
posted @ 2018-07-22 15:31 pha创噬 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 第一次Wrong Answer: #include <cstdio>#include <iostream>#include <cstring>using namespace std; struct st{ int l; int w;}; void sequencel(int n,st *a){ in 阅读全文
posted @ 2018-07-22 10:50 pha创噬 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10