摘要: 一般都会碰到这样的一个问题,A模块需要返回一系列的object或者message,这样一般有两种处理方式: 1,枚举callback typedef (*callback_type)(obj_type* value);bool getobjects(callback_type callback_func){ for(int i=0;i<COUNT;i++) { ... 阅读全文
posted @ 2014-01-02 15:57 *神气* 阅读(261) 评论(0) 推荐(0) 编辑