title: Filter non alphanumeric characters while reading line in C++?
body: <p>Is it possible to read alphanumeric characters only from the given input line ignoring everything else in C/C++? I am trying to read whole line at a time.</p>
  
  <p>Suppose we have to read the line:</p>
  
  <pre><code> aaa, bbb, ccc .
  </code></pre>
  
  <p>Here, my intention is to ignore comma, dot and space while taking input. </p>