摘要: 希望把函数当作参数引入一个新的函数中,可方便的分离底层上层的开发,或方便复杂系统集成。 一般首先定义一种指针函数,可以定义许多,最终这些函数会通过指针方式作为参数来回传递。 typedef struct{ //define the function pointer structure int (*f 阅读全文
posted @ 2020-03-20 13:28 熊猫滚滚 阅读(1863) 评论(0) 推荐(0) 编辑