随笔分类 - STL
摘要:string #include<cstring> string s1,s2; s1 + s2; // 将两个字符串拼接 [cur]; // 访问下标 s1.size(); // 返回字符串长度 s1.append(s2); // 将 s2 添加到 s1 末尾 s1.replace(pos, n, s
阅读全文
摘要:使用前提:数列为有序数列。 ①数组内 //查找范围:[ begin , end ) ,左闭右开区间。 *lower_bound(begin, end, num); //返回第一个 >= num 的数的数值 lower_bound(begin, end, num) - begin; // 返回下标 实
阅读全文

浙公网安备 33010602011771号