21.07.2012, 15:26
i =0 is generally used for.. for loops.
You are getting so many warnings because you have defined i somewhere and then you have also used for(new i = 0; i < MAX_PLAYERS; i++) which means i is globally defined and then redefined in for loops.
Would be great if you can post more code from the new i=0, pAns[MAX_ANSWERS]; or are they globally defined?
I hope you understand what I meant to say.
You are getting so many warnings because you have defined i somewhere and then you have also used for(new i = 0; i < MAX_PLAYERS; i++) which means i is globally defined and then redefined in for loops.
Would be great if you can post more code from the new i=0, pAns[MAX_ANSWERS]; or are they globally defined?
I hope you understand what I meant to say.