16.11.2011, 13:52
I am trying to make a loop that will make and array hold a list of all of the different vehicle ids but for some reason it only stores the ids 400-610 and the loop never ends, i have tried to fix it but i can't see what i am doing wrong. could someone please tell me what the problem is?
here is the code for the loop:
here is the code for the loop:
Код:
new vehids[211]; new idx=0; for(new x=400;x<612;x++) { vehids[idx]=x; printf("x val is now %d",x); idx++; } printf("Loop is done");