Download MetaTrader 5

wrong dimension error

To add comments, please log in or register
Mihai Ionescu
1680
Mihai Ionescu  

 Hello guys,

I did something like this, and MT compiler throws 'pa' -wrong dimension

struct TChart {
   double d; 
   double pa[100][6]; 
   double ta[100][100]; 
};

TChart cleft, cright;
double x[6];

//... get some values in x[6] array

 ArrayCopy(cleft.pa[10],x);

//...


 I don't understand what I did wrong.

pa[10] is not a pointer to an array of 6 doubles?

Can someone make some light in this? 

To add comments, please log in or register