[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
Проблема такая -
имеем:
typedef struct{
float XX[4];
float XY[4];
float YX[4];
float YY[4];
float XT[4];
float YT[4];
int T0;
}EEDATA;
code EEDATA consteedata={ (2.0,1.0,0.5,0.2), /*XX*/
(0.1,0.0,0.0,0.0), /*XY*/
(0.0,0.0,0.0,0.0), /*YX*/
(0.0,1.0,0.0,0.0), /*YY*/
(0.0,0.0,0.0,0.0), /*XT*/
(0.0,0.0,0.0,0.0), /*YT*/
10
};
В результате получается ерунда
consteedata.XX[0]=0.2
consteedata.XX[1,2,3]=0 и т.д.
В чем здесь проблема?
Просто массив типа
code float testf[4]={1.1,2.2,3.3,4.4}
инициируется правильно
Спасибо
E-mail: info@telesys.ru