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){...
Type: Posts; User: Salem
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){...
> 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....