title: C++ input multiple words to string
body: <p>I've tried using <code>getline()</code>, but the problem is that i have this in loop, and the program simply doesn't stop to get the inputs like it normally does when using cin.</p>
  
  <p>Here's how my code looks like:</p>
  
  <pre><code>    for (int i=0; i&lt;value; i++){
         cout&lt;&lt;endl&lt;&lt;"what are You saerching for?";
         getline(cin, searchFor[i]);
         cout&lt;&lt;"How it should be changed?";
         getline(cin, changeTo[i]);
      }
  </code></pre>
  
  <p>It works normally using cin, but that way i can't get more than 1 word to the table (both tables are strings).</p>