title: How do I correct this allocation error
body: <p>I am suppose to create a nested loop that cycles through a dynamically allocated array  (story) find the char ''*', and fill in the position where this char is with information from the other dynamically allocated array (user_input). Then store this replacement information in a new dynamically allocated array called body to be cout.
  Here is the error:</p>
  
  <pre><code>1&gt;          with
  1&gt;          [
  1&gt;              _Elem=char,
  1&gt;              _Traits=std::char_traits&lt;char&gt;,
  1&gt;              _Alloc=std::allocator&lt;char&gt;
  1&gt;          ]
  There is no context in which this conversion is possible
  </code></pre>
  
  <p>can anyone tell me what I'm doing wrong?
  Here is my code:</p>
  
  <pre><code>void create_story(string &amp; user_inputs, string *story, int num_lines,
          string **body)
  {
      *body = new string[num_lines];
  
      for (int i = 0; i &lt; story[i].length; i++)
      {
          if (story[i] == "*")
          {
              body[i];
          }
  
          for (int j = 0; j &lt; story[i].length(); j++)
          {
              if (story[i][j] == '*')
              {
                  cout &lt;&lt; "I found it at character number: " &lt;&lt; i;
                  *body[i] += user_inputs;
              }
              else
              {
                  body[i] += story[i][j];
              }
          }
      }
  }
  </code></pre>