Page 1 of 1

Creating increment or consecutive variable

PostPosted: Sun Jun 12, 2011 3:14 am
by Clokio
Anyone know how to create increment or consecutive variable

ex: a1 a2 a3...

Re: Creating increment or consecutive variable

PostPosted: Sun Jun 12, 2011 6:34 am
by skydereign
Use an array. That way they are incremented.
Code: Select all
int array[10]; // creates 10 variables

array[0]=1;
array[1]=4;
array[2]=7;
array[3]=9;
// etc