0

Adding floats from file to matrix in C

I'm having problem taking a list of floats from a txt file and putting them in a matrix. the file is structured like 15 floats per line and an undefined number of lines https://code.sololearn.com/csDvBsTZjHrS/#c

22nd Sep 2020, 10:09 AM
Guido Parlatore
Guido Parlatore - avatar
2 Antworten
+ 1
Not getting the reason yet. I just noticed that <buffer> is 100 bytes (defined at line 7), why read 128 bytes at line 19, 20 and 33?
22nd Sep 2020, 10:36 AM
Ipang
+ 1
Thanks now the code partially works but it has some problems adding the values to the matrix, there are a lot of errors
22nd Sep 2020, 11:11 AM
Guido Parlatore
Guido Parlatore - avatar