title: How to use a string as a variable name in C++?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7143120/convert-string-to-variable-name-or-variable-type">Convert string to variable name or variable type</a>  </p>
  </blockquote>
  
  
  
  <p>How to use the string value as a variable name in c++</p>
  
  <pre><code>string listName = "hari";
  string vectorName = "BF_vector_"+listName;
  vector&lt;string&gt; vectorName;
  
  vectorName.push_back("Some Value");
  </code></pre>
  
  <p>How to use the string value("BF_vector_hari") of vectorName as a variable name of vector.?
  Thanks in advance.</p>