Hi , I´m having trouble initializing an array of floats within a structure during declaration.
at first I used the aray data there was no problem, but when I changed the value there was an error.
What should I do?
note error message:too many initializers for 'float [3]'
const size_t Jdatalatih = 30;
float datalatih[Jdatalatih][3] = {
{0.4, 260, 0},
{0.43, 275, 0},
{0.33, 284, 0},
{0.38, 274, 0},
{0.43, 285, 0},
{0.49, 278, 0},
{0.52, 287, 0},
{0.54, 293, 0},
{0.56, 286, 0},
{0.58, 325, 0},
{0.6, 337, 1},
{0.64, 375, 1},
{0.67, 330, 1},
{0.66, 339, 1},
{0.58, 340, 1},
{0.5, 333, 1},
{0.6, 341, 1},
{0.7, 342, 1},
{0.65, 368, 1},
{0.8, 354, 1},
{1.12, 360, 2},
{1.15, 396, 2},
{1.14, 400, 2},
{1.1, 402, 2},
{1.23, 408, 2},
{1,2, 409, 2},
{1,23, 410, 2},
{1.25, 417, 2},
{1.24, 423, 2},
{1.30, 425, 2},
};