title: Array of Vectors C++ - curious behaviour when adding elements
body: <p>for google and stackoverflow search could not help me I have no choice but to ask you guys for help.</p>
  
  <p>I would like to use an array of vectors - I know that this array will only have to contain two vectors. Thus </p>
  
  <pre><code>vector&lt;double&gt; testVect[1];
  </code></pre>
  
  <p>Now when I want to add an Element to the first vector contained in the array I use</p>
  
  <pre><code>testVect[0].push_back(0);
  </code></pre>
  
  <p>So far everything seems ok - unfortunately adding an Element to the first vector somehow also adds the same element (in this case the 0) to the second vector as well. </p>
  
  <p>Could anybody tell me the reason for this kind of behaviour ? (please) - and perhaps a workaround.
  Currently I have to use Visual Studio 6 (employer won't install a new compiler - I am already riling up my coworkers :D </p>