title: invalid conversion from 'char' to 'char*' strcat function
body: <p>So I have a function that takes in a file input character by character and forms the characters into sentences to be modified. One of the modifications to be done is to make a run on sentence in this instance. It will take two sentences and form a run-on sentences by removing the punctuation between them and concatenating them. </p>
  
  <p>Here is my code: </p>
  
  <pre><code>void runOn(char sentence, ifstream &amp; fin, int counter)
  {
    char ch;
    int sentCounter = 0;
  
    bool sentenceEnd = false;
    while(sentCounter&lt;=2)
    {
      char tempSent[SENT_LENGTH];;
      do
      {
        fin.get(ch);
  
        for(int i = 0; i&lt;SENT_LENGTH;i++)
        {
          tempSent[i] = ch;
        }
  
        if(ch == '.' || ch == '?' || ch == '!')
        {
          sentCounter++;
          sentenceEnd = true;
        }
      }while(sentenceEnd == false);
      strcat(sentence,tempSent);
    } 
  }
  </code></pre>
  
  <p>The counter passed is only used because the function should only run for the first two sentences.</p>
  
  <p>When I attempt to compile, I get this error:</p>
  
  <pre><code>function.cpp:36:29: error: invalid conversion from 'char' to 'char*' [-fpermissive]
       strcat(sentence,tempSent);
  </code></pre>
  
  <p>Edit: I should add, I'm only allowed to use C style null terminated character arrays</p>