title: How do I make a C++ program that filter out non-integers?
body: <p>Something like this</p>
  
  <pre><code>cout &lt;&lt; "Enter the number of columns: " ;
      cin &gt;&gt; input ; 
      while( input != int ){
        cout &lt;&lt; endl &lt;&lt;"Column size must be an integer"&lt;&lt; endl &lt;&lt; endl;
        cout &lt;&lt; "Enter the number of columns: " ;
        cin &gt;&gt; input ;
     }
  </code></pre>