I fixed the problem by just rounding all the values except for the discharge. Thanks Kurt!
Type: Posts; User: turkadurka
I fixed the problem by just rounding all the values except for the discharge. Thanks Kurt!
Awesome! I checked with a precision of 8 before and it was 1988 vs 1988. I just checked with a precision of 15 and it was 1987.99999999999880. I now just have to change those calculations to integers.
If you try the text file out with the program, line 99 returns false when it should be true. I even display the two numbers before I check them and they look the same to me! Thanks again!
Hey guys and gals!
so currently my code is reading a txt file something like this.
19880113041524 408
19880113043027 406
19880113044527 406
19880113050027 406
...
haha yep! That was the problem!
Thank you again, laserlight!
You are seriously the most awesome person on the internet <3. I did all the fixes and it works great!
However, if i use...
int (*data)[3] = malloc(330770 * sizeof(data[0]));
it gives me...
Hi all,
Apologies for posting a thread so soon after finding an answer to my last one. This little snippet of my code is driving me crazy.
Soooooo I dont understand the output for my code....
You da man.
Hi all,
I have a very large file so I want to dynamically allocate the memory of a 2d array and then fill it up with the file inputs. Before i used malloc to make the 2d array, everything worked ...