yeah. i initialise node_pos at the beginning when i take in the origin, i have to look through my nodes array for the origin and set the node_pos to that position so that the while loop knows where...
Type: Posts; User: nickch
yeah. i initialise node_pos at the beginning when i take in the origin, i have to look through my nodes array for the origin and set the node_pos to that position so that the while loop knows where...
whoopss.. typo.. yeah.. erm.. it doesn't affect the problem.. changed it back to %d and it still goes in an infinite loop. Only when i place that printf where commented on does it work. without the...
int not_finished = 1;
int iterations = 0;
while(not_finished == 1)
{
/* This is the printf statement that gets everything to work */
/* for(int i = 0; i <...
Hi. I'm new to C programming and am taking an introductory course for this in uni. I'm working on an assignment which requires us to use Dijikstra's alg to determine the shortest route from a given...