- 博客(239)
- 收藏
- 关注
原创 Accelerated C++ 15 Revisiting character pictures
accelerated c++ 最后一章,知识点覆盖比较全面
2017-09-01 21:06:38 194
原创 Accelerated 13 Using inheritance and dynamic binding
using inheritance and dynamic binding
2017-09-01 20:36:17 216
原创 Accelerated C++ 6 split & find_url & grade analysis
split & find_url & grade analysis
2017-09-01 11:14:48 197
原创 Effective STL 29 istreambuf_iterators for character-by-character input
istreambuf_iterators for charactor-by-charactor input
2017-09-01 10:39:25 174
原创 Effective STL 28 How to use a reverse_iterator's base iterator
insertvector<int> v;v.reserve(5);// 1 2 3 4 5 for (int i = 1; i <= 5; ++i) { v.push_back(i);}// 1 2 3(ri) 4(i) 5vector<int>::reverse_iterator ri = find(v.rbegin(), b.ren...
2017-09-01 10:10:47 172
原创 Effective STL 27 convert a container's con_iterators to iterators
Use distance and advance to convert a container's const_iterators to iterators.
2017-08-31 20:44:47 175
原创 Accelerated C++ 5 Using sequential containers and analyzing strings
Using sequential containers and analyzing strings
2017-08-31 15:37:34 188
原创 Accelerated C++ 4 organizing programs and data
origanizing programs and data
2017-08-31 13:05:48 256
原创 Accelerated C++ 3 working with batches of data
working with batches of data
2017-08-31 12:28:09 212
原创 Effective STL 24 Choose carefully between map::operator[] and map::insert
choose between map::operator[] and map::insert.
2017-08-29 17:13:59 246
原创 Effective STL 23 Consider replacing associative container with sorted vector
replacing associative container with sorted vector
2017-08-29 10:30:15 446
原创 Effective STL 22 Avoid in-place key modification in set and multiset
avoid in-place key modification in set and multiset
2017-08-28 16:33:42 226
原创 Effective STL 21 Always have comparison functions return false for equal values
always have comparison functions return false for equal values
2017-08-28 12:00:40 170
原创 Effective STL 20 Specify comparison types for associative containers of pointers
Specify comparison types for associative containers of pointers
2017-08-28 11:11:22 314
原创 Effective STL 19 understand the difference between equality and equivalence
difference between equality and equivalence
2017-08-27 18:48:07 290
原创 Effective STL 16 pass vector and string data to legacy APIs
pass vector and string data to legacy APIs
2017-08-26 21:59:34 148
原创 Effective STL 17 Use "the swap trick" to trim excess capacity
use "the swap trick" to trim excess capacity
2017-08-26 21:50:13 246
原创 Sleep sort
sleep sort#!/bin/bashfunction f() { sleep "$1" echo "$1" }# -n "$1" 第一个参数非空when [ -n "$1" ] do # 后加 & 退出shell 后运行的命令继续执行 f "$1" & # 删除一个参数,即待排数 shiftd
2017-08-18 20:01:45 247
原创 Effective STL 9 erasing options
To eliminate all objects in a container that have a particular value:contiguous-memory container(vector, deque, or staing)c.erase(remove(c.begin(), c.eng(), 1963), c.end());listc.remove(19...
2017-08-17 11:24:51 249
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人