title: How can I add strings to a dynamic array in c++?
body: <p>I'm a Uni student who just started learning c++. I was practicing and ran into an issue.
  I have to add some strings (to be specific human names) to a dynamic array but I have some problems apparently. </p>
  
  <p>My task specified code so far (I'm using sturct):</p>
  
  <p>...</p>
  
  <pre><code>int FPQ=0;
  string FP[MaxN+1];
  
  for(int i=1; i&lt;=N; ++i)
      {
          int Perc=(People[i].Point)*100/P;
          if( Perc &gt;= 90)
         {
              FP[FPQ]=Person[i].Name;
              FPQ=FPQ+FPQ;
          }
      }
  </code></pre>
  
  <p>When I check the results FPQ has the right value yet FP has no names in it (or at least the standard console output doesn't show). What did I do wrong? </p>