title: for_each to concatenate string, to all strings within a vector
body: <p>I'm in the process of learning c++, so naturally i've been fooling around trying to figure out what i can, and can't do. I've written a small piece of code to mess around with lambdas and strings, but it seems to be giving me some issues :S.</p>
  
  <p>I have two string stored in the vector, one is chocolate and the other is vanilla. I want to concatenate fudge to the end. I'm declaring the associated libraries. Everything compiles and runs. But nothing concatenates :S Any help would be appreciated. Thanks in advance. </p>
  
  <pre><code>void main()
  {
  
       vector&lt;string&gt; ramzy;
       ramzy.push_back("chocolate");
       ramzy.push_back("vanilla");
  
       for_each(ramzy.begin(),ramzy.end(),
           [](string word)-&gt;string{
               string i = word + " fudge";
               return (i);
           } );
  
       cout &lt;&lt; ramzy[0] &lt;&lt; endl &lt;&lt; ramzy[1] &lt;&lt; endl;
  
  }
  </code></pre>
  
  <p>The output is show below:</p>
  
  <pre><code>chocolate
  vanilla
  </code></pre>
  
  <p>Desired output is show below:</p>
  
  <pre><code>Chocolate Fudge
  Vanilla Fudge
  </code></pre>