title: C++ Read until tab detected
body: <p>This may be a little bit redundant, but is there a short/compact method of reading in a string until a <em>tab</em> is reached in C++? Similar to other questions, but I want to keep reading <em>even if I hit a space</em>. For example if the STDIN is</p>
  
  <pre><code>Cute Kitty    is    fabulous as always
  </code></pre>
  
  <p>Then I want to read in Cute Kitty; is; fabulous as always, three times.
  I've seen people do this with regex in files, but how would you do this on the stdin in C++? I want to put it in a string class and whenever I try something like</p>
  
  <pre><code>scanf("%s\t", &amp;mystring);
  </code></pre>
  
  <p>It throws up an error because I'm not using an array of chars.
  Thanks, please keep answers easy enough for a noob to understand.</p>