MQL4报警告arrays passed by reference only(仅通过引用传递的数组)怎么解决?
MQL4报警告arrays passed by reference only(仅通过引用传递的数组)怎么解决?

这样写函数:int test(string ss,double qq[]){...}
然后就报

解决方法:
int test(string ss,const double &qq[]){...}
常量引用,意思是参数只能传进去不能修改传出。