Create variable names on demand
<p>I'm trying to code a console minigame (for fun), and I need to create a map(graph) with a predefined number of rooms(vertices).</p>

<p>I'd like to define a <code>class room</code> and create instances of that class that will be assigned to variable names like <code>room_1</code>, <code>room_2</code> and so on.</p>

<p>My problem is, that I don't know how to create these variable names. To cut a long story short, I need a tool/tip/trick  to create preformated variable names on demand.</p>

<p>F.i let's say that <code>MAX_R=5</code>, then I'll need variables <code>room_1</code> to <code>room_5</code>.
Any ideas?</p>
