![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
chenlongzhen_tech
[声明] 此账号不在更新,请关注 http://blog.csdn.net/tech_chenlongzhen
展开
-
二分搜索
#include <iostream> #include <vector> using namespace std;int main() { vector<int> nums={1,2,3,4,5,6,7}; int find_num = 9; auto beg = nums.begin(), end = nums.end(); auto mid = beg + (e原创 2016-02-15 17:30:55 · 305 阅读 · 0 评论 -
split
#include <string> #include <iostream> #include <fstream> #include <vector> #include <sstream>using namespace std;//void split(string& s, string& delim, vector< string >* ret) //{ // size_t last = 0;原创 2016-05-10 14:50:45 · 669 阅读 · 0 评论