Hi everyone,
I have a 2d array whith 50000 lines and 14 columns, and I have to sum/multiply each value of a column for a fixes numbers, like this:
a[1][14] = 0 a[1][14] + 2 = 2
a[2][14] = 2 a[2][14] + 2 = 4
a[3][14] = 5 a[3][14] + 2 = 7
How I do this for all the numbers?
I do this:
float data3 = 0;
float data4 = 0;
data3 = data[1][1] + 2;
data4 = data[2][1] + 2;
cout << data3 << "" << endl;
cout << data4 << "" << endl;
And I like to put the values into an another 2d array with "n" lines and 1 column.
Than I have to find the maxValue of this 2d array with 1 column.
Can you help me?
Thanks