![]() |
#2
wfpb2007-06-12 12:28
|
template<class InputIterator, class T> inline
size_t count(
InputIterator First,
InputIterator Last,
const T& Value
)
上面这个是stl中count函数的原型!
哪位大哥写下,怎么实现在一对迭代器中数指定元素出现次数。当然用模板哦!
我写出来的,但是有问题,在dev-cpp中可以运行,在vs2005中报错。
先看看别人怎么写!
谢谢了!