title: getchar function skipped the first character when used after integer
body: <p>Hello everyone this problem made me crazy 
  i have to take large line as input T number of times. I use following code</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string.h&gt;
  using namespace std;
  
  int main() {
  
      int T;
      char buffer,b1;
      cin &gt;&gt; T&gt;&gt; b1;
      //fflush(stdin);
  
      while(T--)
      {
          char ch,c;
          int A[14];
         while((ch=getchar())!='\n')
         {
             cout &lt;&lt; ch;
         }
      }
      return 0;
  }
  </code></pre>
  
  <p>I know if we taken input character after integer then it store null as a character thats why i take an extra input as b1(as a buffer) so that null will store in it.
  when i pass input as </p>
  
  <pre><code>2
  758
  8758
  </code></pre>
  
  <p>It gives following output</p>
  
  <pre><code>58
  8758
  </code></pre>