2013年11月2日

《C和指针》 读书笔记 -- 第13章 高级指针话题

摘要: 1.函数指针 int (*f)(); int *(*f[])();用途:【1】回调函数e.g./*在一个单链表中查找指定值*/Node *search_list(Node *node,void const *value,int (*compare)(void const *,void const *) ){ while(node != NULL) { if(compare(&node->value,value)==0) break; node=node->link; } return node;}int compare_ints(void const *a,v... 阅读全文

posted @ 2013-11-02 10:45 熊猫酒仙是也 阅读(358) 评论(0) 推荐(0) 编辑

导航