I fisrt define an array and then give values to its elements.
float MATRIX2D_1[3][3]
/*other stuff*/
float MATRIX2D_1[3][3] = {1/9,-1/9,1/9}, {1/9,-1/9,1/9}, {1/9,-1/9,1/9}};
I get a "parse error before float" for the second line. Does antone now why ?
Thanks,
Daniel
float MATRIX2D_1[3][3]
/*other stuff*/
float MATRIX2D_1[3][3] = {1/9,-1/9,1/9}, {1/9,-1/9,1/9}, {1/9,-1/9,1/9}};
I get a "parse error before float" for the second line. Does antone now why ?
Thanks,
Daniel
Comment