std::vector :( std::vector<int> piece_list; )
| 1.piece_list.reserve(std::count(pieces.begin(), pieces.end(), false)); 预留std::count个大小
| 2.for (std::vector<int>::reverse_iterator i = piece_list.rbegin(); i != piece_list.rend(); ++i) 倒着走
| 3.find_if()---------可以参考最近的随笔
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|