2011年4月22日
摘要: 阅读全文
posted @ 2011-04-22 18:16 猿类的进化史 阅读(137) 评论(0) 推荐(0) 编辑
摘要: for_each 1 //对序列中的每个元素执行某操作 for_each() 2 /*template<class InputIterator, class Function> 3 Function for_each(InputIterator first, InputIterator last, Function f) 4 { 5 for ( ; first!=last; ++first ) f(*first); 6 return f; 7 }*/ 8 #include<iostream> 9 #include <vector>10 using names 阅读全文
posted @ 2011-04-22 15:09 猿类的进化史 阅读(191) 评论(0) 推荐(0) 编辑