Why the hell is C so hard? I have been trying for 2h now to read a .txt file with float values. Still it fails and only returns zeroes instead of the real values
Why the hell is C so hard? I have been trying for 2h now to read a .txt file with float values...
Other urls found in this thread:
>using fopen instead of open
retard detected
Try printing the float by value rather than by pointer
Remove & before number array.
This
A declared array is basically a reference to the first element in it. Alternatively, numberArray+sizeof(double)*y would also work.
>C
RETARD ALERT
You'd be hard-pressed to find a well-optimized game written in anything that doesn't have critical segments written in C, retard.
OP you need to learn how to debug. It will let you step through each line of code as its running, see the stack and variables, and make it easy to see what the problem is.
Enjoy overhyping the next big niggerscript framework that will come in the next nanosecond, which requires 500 MB of node_modules for a fucking hello world application.
JS and Python are bluepill languages for simpleton fags, while C actually redpills you on wtf is going on inside the hardware.
C is actually outdated as a modern hardware description
source: somebody said that once and I'm going to parrot it