title: Program declaring variables by itself
body: <p>I am still a ... novice, in c++.
  I don't know the name of what I am looking for but
  I 've been searching a lot but can't seem to find the answer to following question:
  I want to write a program that would declare demanded number of variables.
  Example:</p>
  
  <pre><code>int a;
  cin&gt;&gt;a;
  </code></pre>
  
  <p>Now if "a" is 5 (or any other number), I want program to declare 5 more variables,
  Names do not matter but let's say...n1,n2,n3,n4,n5.
  I've tried array and for loop but can't get it to work.
  I got answer on Croatian forum (forum.hr) but the forum is currently offline, so I had no
  time to try it out...
  It was about using heap instead of stack
  Thx in advance </p>