title: To take sentence as a input in c++
body: <p>I am trying to take the input of the two sentences one after the other,but while printing it is printing a blank space and in the next line it is printing the first sentence and the loop is exiting.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>int main()
  {
  
      char b[100000];
      char c[100000];
      int t;
      cin&gt;&gt;t;
      while(t--)
      {
          cin.getline(b,100000);
          cin.getline(c,100000);
          cout&lt;&lt;b&lt;&lt;"\n"&lt;&lt;c&lt;&lt;"\n";
      }
  }
  </code></pre>
  
  <p>The input:</p>
  
  <pre><code>1
  run run
  good sentence
  </code></pre>
  
  <p>The output:</p>
  
  <pre><code>Blankspace
  run run
  </code></pre>