title: How can I access variables in vector<struct> *obj?
body: <p>How would I get my variables out of a vector?</p>
  
  <p>I can't use the binary insertion operators or the equal operators.</p>
  
  <p>Earlier, I declared a <code>vector&lt;someStruct&gt; *vObj</code> and allocated it, then returned the <code>vObj</code>
  and called it in this function:</p>
  
  <pre><code>vector&lt;sameStruct&gt; firstFunc();
  
  for (unsigned int x = 0; x &lt; v-&gt;size(); x++)
  {
     v[x];
  }
  </code></pre>
  
  <p>when I debug it, <code>v[x]</code> now has the full contents of the original vector, as it did before without the subscript/index.</p>
  
  <p>But I don't think I've done anything to progress beyond that.</p>
  
  <p>I just have about 4 variables inside my vector; when I debug it, it has the information that I need, but I can't get to it.</p>