本文介绍了无法将参数从'double(double)'转换为'double(__ cdecl *)(double)'错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 当我编译代码时,我收到错误 C2664:''Integration :: qgaus'':无法转换参数1来自''double (double)''这个部分的''double(__ cdecl *)(double)'' : double Integration :: quad2d(double(* func)(double,double)) { nfunc = func; 返回qgaus(f1,x1,x2); //错误那里 } //双倍(* nfunc)(双倍,双倍); // double qgaus(double(* f)(double),double min,double max)const; 请帮助When I compile code I get errorC2664: ''Integration::qgaus'' : cannot convert parameter 1 from ''double(double)'' to ''double (__cdecl *)(double)''in this part :double Integration::quad2d(double (*func)(double,double)){nfunc = func ;return qgaus(f1,x1,x2);//error there}//double (*nfunc)(double,double);//double qgaus(double (*f)(double),double min,double max) const;Please help推荐答案 这篇关于无法将参数从'double(double)'转换为'double(__ cdecl *)(double)'错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-24 09:58