Forum

How to properly add or modify element of a struct array?

Hi! I'm pretty new to programming and trying out the following code. It works for an int array but not on struct array. Maybe it will work if I check for the specific member of the struct like a[iLast].mInt != NULL on the check at the Add1DArrElem (the line with comment // illegal operation error

How to loop through each struct member of struct array?

Hi, I'm learning OOP on MQL4 and I am stuck on the following code. Can anyone please assist? I am new to MQL4 and this is my first post here kindly correct me if I may have broken any of the rules. I already searched quite a bit on this forum and also on stack overflow but I could not find an