title: C++ Put string in array
body: <p>I keep seeing similar questions to mine, however, I can't seem to find one that helps my situation. Honestly, it seems like such a mundane question, I shouldn't be asking it, but here I am 2 weeks latter, still with no answer. </p>
  
  <pre><code>{
      string word;
      ArrayWithWords[d] = word;
      d++;
  }
  </code></pre>
  
  <p>Every time this loop runs, I want to put <strong>word</strong> in position <strong>d</strong> of the array. Other examples I've found only turn the string into char*. </p>
  
  <p>The array will be used more than once and having a solid value, if that's what it's called, is far more preferred. I'd like to avoid using a pointer.</p>