I have problem in very simple console app, code looks like this.
int x - player moving and changing axis "x" and I want make full history of moving via array. See code(only example) below...
Thank you for your help and answer
int round = 0;
while(infinity){
int[] PosXSave = new int[round + 1]; //theoretically infinity size of arrray.
PosXSave[round] = x; //every round i want save current value of x, but
//only last save have propertly value and rest are
//zero or other number
round++
}
PosXSave
before thewhile
? – Anko Apr 13 at 13:17