0

Average, max and min of floats in txt file.

I have to take data from a txt file containing 15 floats per line for an undefined number of lines. then calculating the average max and min for row and column, i thought of adding the floats to a matrix to calculate more easily the results. then id have to put the output value in a new txt file. I don't understand what's wrong with the code. https://code.sololearn.com/cJNfJFGyrpNv/#c

22nd Sep 2020, 4:14 PM
Guido Parlatore
Guido Parlatore - avatar
2 Antworten
+ 1
Right, it solved a smaller problem i was having but the program still doesnt work
22nd Sep 2020, 4:44 PM
Guido Parlatore
Guido Parlatore - avatar
+ 1
I found the problem, i had to declare the chars not as char* but as char name [size], still you're right i made a dumb error
22nd Sep 2020, 5:04 PM
Guido Parlatore
Guido Parlatore - avatar