12-15-2009, 02:38 PM
Yes that is because you're declaring the x variable every time new.
To do what you want you'll need an array.
To do what you want you'll need an array.
Code:
char[] x;
//then in the loop
x[i] = i;