Search:

Type: Posts; User: Salem

Search: Search took 0.51 seconds.

  1. Thread: Problem!!!

    by Salem
    Replies
    24
    Views
    4,724

    Well you're just going to have to post your...

    Well you're just going to have to post your latest code.



    int size;
    int p1Payoffs[size/2], p2Payoffs[size/2];

    file = fopen("prisoners_dilema.txt", "r");
    if(file==NULL){...
  2. Thread: Problem!!!

    by Salem
    Replies
    24
    Views
    4,724

    > int size = cols*rows; C does not predict the...

    > int size = cols*rows;
    C does not predict the future, so do this after you have read rows and cols.

    > for(a=0; a<size*2; a;)
    Since your arrays are size/2, running to size*2 is a big overstep....
Results 1 to 2 of 2