2017年4月24日

c++ std::find函数

摘要: template <class InputIterator, class T>InputIterator find (InputIterator first,InputIterator last,​ const T& val); first,last 分别指向一个序列中初始及末尾位置的输入迭代器。这 阅读全文

posted @ 2017-04-24 22:16 freshman2014 阅读(2107) 评论(0) 推荐(0)

istringstream 用法

摘要: istringstream 类用于执行C++风格的串流的输入操作 istringstream用空格作为字符串分隔符 #include <iostream>#include <sstream>#include <string>using namespace std;void test(){ { //i 阅读全文

posted @ 2017-04-24 22:11 freshman2014 阅读(4203) 评论(0) 推荐(0)

导航