Dynamic Variable Declaration

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.
Use a vector. (or if you have to, an array)
Topic archived. No new replies allowed.