L_J_SHOU

2014年6月28日

C++ mem_fun 和 mem_fun_ref 的用法

摘要: 假设我们有以下的一个类:另外有一个包含 class A 对象的数组: vector vec;如何对每一个类的对象调用成员函数print.做法1: 利用下标for(int i=0; i::const_iterator it=vec.begin(); it!=vec.end(); ++it) { it... 阅读全文

posted @ 2014-06-28 20:48 L_J_SHOU 阅读(534) 评论(0) 推荐(0) 编辑