Dynamic Variable Declaration

Feb 23, 2011 at 5:41am
Hi,

Is there a way to dynamically declare variables depending on user input?
Say if n=3, the program declares var1, var2 and var3?

Thanks.
Feb 23, 2011 at 5:50am
Use a vector. (or if you have to, an array)
Topic archived. No new replies allowed.