title: Transform C++11
body: <p>I have a code that calculate the sum of a certain number of points, multiplied by the total of the questions asked, divided per 20. 
  The thing is that the sum of a certain number of points is in vector type, and the number of the questions total is a double. So I need to convert vector in double. 
  I got this code</p>
  
  <pre><code>return std::accumulate(begin(chiffre), end(chiffre), 0.0, [](double a, double b)-&gt;double { return a + b * 20;}) / nbtotal;
  </code></pre>
  
  <p>But this is C++11 and I program not using C++11, so I need to convert this code into C++98. And I really don't know how to proceed.
  If someone can help, don't hesitate ! And sorry for my english !! :) </p>