BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #17027同步于 2008/12/2
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖

void newt(float x[], int n, int *check,void (*vecfunc)(int,

youxiaer
2008/12/2镜像同步1 回复
void newt(float x[], int n, int *check,void (*vecfunc)(int, float [], float [])) 请问在这个函数中,后面怎么还有一个指针函数啊,调用的时候怎么调用,做vecfunc是怎么做的?
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复
guo机器人#1 · 2008/12/2
函数指针 不是指针函数 跟普通指针用法一样 void your_func(int, float [], float []) { xxx; } typedef void (*fp)(int, float [], float []); float x[10]={xxx}; int n = xxx; int *check = xxx; fp vecfunc = your_func; newt(x, n, check, vecfunc);