上一页 1 ··· 89 90 91 92 93
摘要: Find 返回第二个参数来表示搜索失败,否则返回指向第一个等于给定值的元素的迭代器。Int val = 42;Vector::const_iterator resut = find(vec.cbegin(), ... 阅读全文
posted @ 2018-07-07 13:05 Lucky小黄人^_^ 阅读(105) 评论(0) 推荐(0)
摘要: 下面这代码按下Ctrl+z结束while输入后,接下来的cin >> val2就无法输入了#include #include #include #include #include using namespace ... 阅读全文
posted @ 2018-07-06 10:05 Lucky小黄人^_^ 阅读(119) 评论(0) 推荐(0)
摘要: 构造一个string的其他方法:1string s1(cp, n),cp为c风格数组名或一个指向C风格数组的指针,则执行的操作为拷贝从cp开始包括cp在内的接下来n个字符给s1,n的默认值为sizeof(cp)/... 阅读全文
posted @ 2018-07-05 22:48 Lucky小黄人^_^ 阅读(154) 评论(0) 推荐(0)
摘要: Forward_list 不支持pop_back和—操作。Vector, string 不支持push_front和pop_front。List迭代器和关联容器迭代器不支持算数运算(凡是不支持随机访问其元素的容器... 阅读全文
posted @ 2018-07-05 20:30 Lucky小黄人^_^ 阅读(83) 评论(0) 推荐(0)
上一页 1 ··· 89 90 91 92 93