intelligent_14:
Hi everybody
Hi everybody
I'm wondering how i can define one special function that returns an Array
All definable function only return one variable not Array!
can anyone help me?
Thanks
As far as I know there is no way to return an array, but u can use the following technique
double MyFunc(int shift)
{
static double a[100];
static bool firstTime = true;
if (firstTime)
{
firstTime = false;
}
return a[shift];
}
elihayun:
As far as I know there is no way to return an array, but u can use the following technique
As far as I know there is no way to return an array, but u can use the following technique
double MyFunc(int shift)
{
static double a[100];
static bool firstTime = true;
if (firstTime)
{
firstTime = false;
}
return a[shift];
}thanks Elihayun, but this function return only one number (a[shift]) i wants it to return all of "a[]" array not a[shift]
intelligent_14:
thanks Elihayun, but this function return only one number (a[shift]) i wants it to return all of "a[]" array not a[shift]
thanks Elihayun, but this function return only one number (a[shift]) i wants it to return all of "a[]" array not a[shift]
U can use it this way
for (int i=0; i<100; i++)
{
double d = MyFunc(i);
}

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi everybody
I'm wondering how i can define one special function that returns an Array
All definable function only return one variable not Array!
can anyone help me?
Thanks