title: adding string objects to an array via loop
body: <p>What i'm trying to do is create a template array class that will store values of a data type into an array. I have it working fine with int values, however working with string objects things start to break down.</p>
  
  <p>I've taken out the block of code and tried it on it's own and I do get the same error. I'm sure I've learnt this, and I'm almost positive that the answer is something simple, trying to wrap my head around the pace in which we're learning c++ is a little crazy at times!</p>
  
  <p>My best guess right now, is that I would need to tokenize the string and look for spaces. I tend to over think things though which lead to more confusion - thus me seeking out a answer here!</p>
  
  <p>The code:</p>
  
  <pre><code>// Test String: Hello World this is a String Object
  int stringSize = 7;
  int count = 0;
  
  string s[stringSize];
  
  cout &lt;&lt; "\nEnter " &lt;&lt; stringSize &lt;&lt; " one-word string values:\n";
  
  while (count &lt; stringSize) {
  
      string tmpVal;
  
      cin &gt;&gt; tmpVal;
      s[count] = tmpVal;
  
      count ++;
  }
  </code></pre>