cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Dynamic Variable Declaration
Dynamic Variable Declaration
Feb 23, 2011 at 5:41am UTC
aquafina
(9)
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 UTC
firedraco
(6243)
Use a vector. (or if you have to, an array)
Topic archived. No new replies allowed.