【发布时间】:2021-05-25 11:42:07
【问题描述】:
这对许多人来说可能看起来微不足道,但它似乎让我变得更好,因为我无法弄清楚如何使用 ArrayResize()(我认为这是非常必要的)来解决这个问题。
在下面的代码中,当isBody 为true 时,我想填充ar[][2]。我怎样才能做到这一点。
int ar[][2];
void CheckBody() {
for (int i = 20; i >= 0; i--) {
if (isBody) {
int a = i + 1;
int b = i - 3*i;
// how to populate ar with [a,b] when isBody is true in this block
}
}
}
【问题讨论】:
标签: algorithmic-trading mql5 metatrader5