Quote Originally Posted by akiel123 View Post
Hi guys.
Okay, so I am quite new to programming, and i was wondering if there is any way to create a variable using a variable in the name?
So f.x. if you wanted to create an int named nr(x), and x was 1, you would get an int variable named nr1. How would you do this?
I believe what you are trying to ask is if you can create an int called x as 1, and then create a new int called nr1 but using x in place of the 1. Well, if this is what you are asking then the answer is no. You can use a similar technique to call upon ints already created (ex: int nr1, nr2, nr3; ) but you cannot create them in this sense. Let me know if this is what you were asking for or if not, you have any other ways to clarify it.