07 2013 档案

指针函数小用
摘要:#include "stdio.h"typedef int (*FUN)(int x,int y);FUN m_fun;int add(int x,int y){ return x+y;}int sub(int x,int y){ return x-y;}enum method{ Add=1, Sub};void ChooseFun(method md,int x,int y){ switch(md) { case Add: m_fun=add; break; case Sub: m_fun=sub; ... 阅读全文

posted @ 2013-07-19 22:16 奔跑吧,蜗牛! 阅读(172) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示