title: How do I check if an integer exists in a variable in C++?
body: <p>for example</p>
  
  <pre><code>cout&lt;&lt;"What number"&lt;&lt;endl;
  cin&gt;&gt;number;
  </code></pre>
  
  <p>This would give me</p>
  
  <pre><code>What number
  123
  </code></pre>
  
  <p>So how would I check if 1 or 12 or 32 was in the input number?</p>