Delete item from multidimensional vector MQL4/C++
Delete item from multidimensional vector MQL4/C++
Loading saved threads...
A. B · External communityPost link
External question — Stack Overflow Stack Exchange
Author: A. B
Original post: https://stackoverflow.com/questions/66829588
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
Could you please help me to delete an item from a multidimensional array? For example how can I delete the first range of
in_matrix
below?
vector<CArrayInt*> int_matrix;
for(int i=0;i<10;i++){
CArrayInt *int_vector = new CArrayInt();
for(int j=0;j<10;j++){
int_vector.Add(OrderTicket());
}
int_matrix.Add(int_vector);
}
int_matrix.Delete(0); //// DOESN'T WORK
Thanks a lot
Quote
Report
Post Reply
Quoted from Forex.com.bd-Editorial External question — Stack Overflow Stack Exchange Author: A. B Source score (net votes, not local likes): 0 Original post: https://stackoverflow.com/questions/66829588 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. Could you please help me to delete an item from a multidimensional array? For example how can I delete the first range of in_matrix below? vector<CArrayInt*> int_matrix; for(int i=0;i<10;i++){ CArrayInt *int_vector = new CArrayInt(); for(int j=0;j<10;j++){ int_vector.Add(OrderTicket()); } int_matrix.Add(int_vector); } int_matrix.Delete(0); //// DOESN'T WORK Thanks a lot
Checking account access…