title: cin.get() function in C++
body: <p>I have been studying c++ and came across the code below. I dont understand why they have to use the get(c) in "cin.get(straddress, sizeof(straddress), fdelim).get(c)". The code works just fine without this get(c). Can someone enlighten me on the use of get(c)? The purpose of the program is to read data of mixed type.</p>
  
  <pre><code>const char fdelim = '\t';
  char straddress[256];
  int zip;
  char c;
  
  cout &lt;&lt; "Enter a record of data:  ";
  cin.get(straddress, sizeof(straddress), fdelim).get(c) &gt;&gt; zip;
  cout &lt;&lt; "\nStreet address :   " &lt;&lt; straddress &lt;&lt; endl;
  cout &lt;&lt; "\nZip/Postal code:   " &lt;&lt; zip &lt;&lt; endl;
  </code></pre>