I have a question I use the below code to remove certain figures from arrays from a specific index. How can I make the code work for arrays example RunningTrades[].symbol
Moses Adala Munyenye:
I have a question I use the below code to remove certain figures from arrays from a specific index. How can I make the code work for arrays example RunningTrades[].symbol
I have a question I use the below code to remove certain figures from arrays from a specific index. How can I make the code work for arrays example RunningTrades[].symbol
for arrays in arrays ? same thing , send the array . If .symbol is an array too
RemoveIndexFromArray(RunningTrades[0].symbol,i);
Moses Adala Munyenye:
void RemoveIndexFromArray(string &MyArray[],int index)
Instead of hard coding the datatype, make it a template. Instead of copying three times, just move them down.
template<typename T> void RemoveIndexFromArray(T &MyArray[],int index) { for(int iLast=ArraySize(myArray)-1; index < iLast; ++index) MyArray[index] = MyArray[index+1]; ArrayResize(myArray, iLast); }
Noted and thanks for the help and advice this is solved
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