Using a letters value, not the letter itself

I want to have various arrays, named things like Row1, Row2 etc.
If j is a loop counter that I'm wanting to run through each possible value, how can I access the particular array relating to j?

So for example when j is equal to 1, I'll want to access Row1, but I can't just do this by typing in Rowj as it thinks this is a separate undefined array and its using the letter j, rather than the value that j is currently taking.

I'm new to C++ having done a small bit of programming in another language, not including any code as this is a fairly fundamental idea that I would use lots in the program I'm trying to make.

Any help would be greatly appreciated!
If I understand right, switch is what you are looking for:
http://www.cplusplus.com/doc/tutorial/control/
Or you an use 2D array for example when j=1 access array[j][]
Topic archived. No new replies allowed.