12-15-2009, 02:48 PM
(12-15-2009, 02:38 PM)Master of The Universe Wrote: Yes that is because you're declaring the x variable every time new.
To do what you want you'll need an array.
Code:char[] x;
//then in the loop
x[i] = i;
I'm getting an error on the 'char[] x;', it says it expected primary expression before char.
Where exactley do I put this?
And sorry im pretty new to C++.