title: C++ - Repeat std::getline() as user integer input?
body: <p>How to repeat std::getline() as user number input like this method:</p>
  
  <pre><code>  std::string num;
    std::cout &lt;&lt; "How many subjects you want to sum: ";
    std::getline (std::cin,num);
  </code></pre>
  
  <p>Then take user number input and repeat std::getline() many times as input to sum all the subjects marks user will input them after the first questions.</p>