#define SIZE 3 double Variable[4][SIZE];
angevoyageur:
Thank you for your answer, the error was in fact related to a semicolon, but not that one
#define SIZE 3 double Variable[4][SIZE];
That was a missing semicolon due to an error in copying and pasting the code.
The original error was instead:
#define SIZE 3;
where I put an extra semicolon in the define directive....sorry, too much in front of the monitor today :-(
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
Hello everybdy,
according to documentation (https://www.mql5.com/en/articles/567), when declaring an array, its size can be specified directly as a number or using a predefined constant:
Unfortunately this seems not to work with multidimensional array, that is:
leads to an error in the compilation. Is there any way to define multidimensional array whose size of dimensions others than the first one depends on some parameter constant, so that this size, if several arrays of this type are used in the code, can be changed once for all simply modifying that parameter?