
C指针
文章平均质量分 72
ElegantIce
势不可当
展开
-
c指针疑问
刚刚看到一篇文章写的是有关cuda指针的博客,我不是很明白,就复制过来写写我的疑问。原文博客是http://bbs.youkuaiyun.com/topics/390957076typedef int (*FP)(int);int Fun(int n){ return n*2;}void TestFP(int n, FP fun){ printf("%d\n", fun(n));原创 2015-03-16 16:55:26 · 451 阅读 · 0 评论 -
有关于指针函数的问题
哎呀,我刚刚写了一大堆,点了提交之后什么都没了,简单写写吧,晕死typedef int (*FP)(int);int Fun(int n){ return n*2;}void TestFP(int n, FP fun){ printf("%d\n", fun(n));}FP fp = Fun;int main(){ TestFP(5, fp); return原创 2015-03-16 17:46:47 · 458 阅读 · 0 评论