摘要:
武当小诗 阅读全文
posted @ 2011-09-01 17:57
billin
阅读(201)
评论(0)
推荐(0)
摘要:
map中的lower_bound和upper_bound的意思其实很简单,就两句话:map::lower_bound(key):返回map中第一个大于或等于key的迭代器指针map::upper_bound(key):返回map中第一个大于key的迭代器指针所以,理解这两个函数请不要按照字面意义思考太复杂,因为仅仅是不小于(lower_bound)和大于(upper_bound)这么简单。看两个msdn里的例子// map_upper_bound.cpp// compile with: /EHsc#include <map>#include <iostream>int 阅读全文
posted @ 2011-09-01 15:54
billin
阅读(39125)
评论(3)
推荐(5)
浙公网安备 33010602011771号