title: translating a string of words to another string of words
body: <p>I want a program that gets a <code>char[]</code> as input and outputs a <code>char[]</code> of the same length but that its first character is a <code>w</code> , the last one is a <code>f</code> and all the characters in between are <code>o</code>s.</p>
  <p>If the input has size one, the output shoul be de <code>'w'</code> and if it has 2 characters it should be <code>wf</code>.</p>
  <p>Example: &quot;stackOverflow&quot; =&gt; &quot;wooooooooooof&quot;</p>
  <pre><code>  #include &lt;iostream&gt;
    #include &lt;cstring&gt;
    
    using namespace std;
   
    void translate(char human[], char dog[]); //human is input and dog is output
   
    int main()
    {
        char human[100], dog[100];
   
        cout &lt;&lt; &quot;Enter a string: &quot;;
        cin.getline(human, 100);
   
        for (int i = 0; i &lt; strlen(human); i++)
        {
            dog[i] = human[i];
        }
        dog[strlen(human)] = '\0';
   
        cout &lt;&lt; dog &lt;&lt; endl;
   
   
        return 0;
    }
   
   
    void translate (char human[], char dog[])
    {
        for (int i = 0; i &lt; strlen(human); i++)
        {
            dog[i] = human[i];
        }
   
    }
  </code></pre>