title: Is it possible to use dynamic name for variables in c++
body: <p>I'd like to use dynamic names if it is possible. Here an example about what I mean:</p>
  
  <pre><code>int sol1,sol2;
  for(int i=1; i&lt;3; i++){
     sol"i"=i*i;
     return max(sol1,sol2);
  }
  </code></pre>
  
  <p>With <code>sol"i"</code> I mean <code>sol1</code> in the first cycle (when i=1) and <code>sol2</code> for the second (when i=2).
  Is this possibile in a similar way?</p>