[请教]MT4自定义函数的参数不能为Void类型 新评论 [删除] 2013.09.09 08:47 测试发现:MT4自定义函数的参数好像不能为Void类型 在MT4中自定义一个函数,其中有一个参数为数组型,但不不知道数组的数据类型(int,double等都有可能),示例如下: int MyFunc(double t, void MyArr[]) { int a= 1; return(0); } 编译时说void报错: 请问谁知道这个问题怎么解决?真心感谢! Return more than one variable from a function? Unusual Functions What causes stack overflow error in mql4? metatrom 2013.09.12 02:45 #1 Void MyFunc(double t, double MyArr[]) Ian Flanagan 2013.09.17 12:59 #2 MyArr 是什么数据类型? double? bool? int? 比如说。。如果 MyArr 是double: int MyFunc(double t, double MyArr[]) 新评论
在MT4中自定义一个函数,其中有一个参数为数组型,但不不知道数组的数据类型(int,double等都有可能),示例如下:
int MyFunc(double t, void MyArr[])
{
int a= 1;
return(0);
}
编译时说void报错: 请问谁知道这个问题怎么解决?真心感谢!