
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
It compiles, but it's not interesting, and what about z[][][]?
The second and above dimensions cannot be dynamic, but the function does not need to be customized for a particular size of the second dimension, it can be found out through ArrayRange().
If the number of measurements won't allow to overload the function, the size of the second and other measurements certainly won't. Besides, it's not interesting at all, since it is not universal at all. It would be much easier to write functions with different names.
You mean it should be written like this?
if there are 4 elements in the second dimension?
You mean it should be written like this?
if there are 4 elements in the second dimension?
Write it that way if you want, I don't mind.
That's the way it's going to be:
Write like that if you want, I don't mind.
I asked because I haven't had a chance to experiment.
That's what it looks like:
Then ArrayResize should be set to -Count, not -1, no?
Then ArrayResize should be set to -Count, not -1, no?
Yeah. Corrected.
I asked because I haven't had a chance to experiment.
You don't need to and it won't help for overloading.
Then like this?
True, we need to clarify that this is removing the index by the first dimension, not removing an element (if a multidimensional array is passed, then all "elements" by the S index of the first dimension are removed).You don't need to and it won't help for overloading.
Why not?
Will this untested version work?
I saw Ilya's variant and didn't want to check it, because it's an empty undertaking.
The second way of working with structures. You can work with an array of structures like with a one-dimensional array.
The result is
I saw Ilya's variant and didn't check it because it's an empty undertaking.
You're right, because you can't pass more than 1-dimensional array to a function withint &arr[] signature.