Search:

Type: Posts; User: nickch

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,176

    yeah. i initialise node_pos at the beginning when...

    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...
  2. Replies
    7
    Views
    2,176

    whoopss.. typo.. yeah.. erm.. it doesn't affect...

    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...
  3. Replies
    7
    Views
    2,176

    int not_finished = 1; int iterations =...

    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 <...
  4. Replies
    7
    Views
    2,176

    newbie - while loop and printf

    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...
Results 1 to 4 of 4