This check (if (needed > *capacity)) should be correct since if I need to fit "needed" amount of elements into the array - the array needs to be able to hold at least that many elements, therefore if...
Type: Posts; User: TypicalHog
This check (if (needed > *capacity)) should be correct since if I need to fit "needed" amount of elements into the array - the array needs to be able to hold at least that many elements, therefore if...
Thank your for the suggestions.
Could you take a look at the 2nd problem I have (I assume you were writing an answer when I posted the other reply).
Ok, this worked. Thank you. I have 1 more problem tho.
typedef struct Node {
int id;
int type;
float value;
float bias;
float pos;
I already tried that, I think it didn't work. Let me check real quick.
I have been getting generic Segmentation fault (core dumped) error for a day now. I just can't figure out what's the problem with my code.
typedef struct Node {
int id;
int type;
...