How to force std::cin not to do any implicit conversion?
<p>I was wondering if we can force std::cin so it doesn't performs any implicit conversion between data types, for e.g:</p>

<pre><code>unsigned int number;
cout&lt;&lt;"Please input a number :";
if(std::cin&gt;&gt;number)cout&lt;&lt;std::endl&lt;&lt;"Good number";
else cout&lt;&lt;"Bad number";
</code></pre>

<p>So if you punch -23 or 26.3 , it will simply perform implicit conversion and store the value in <code>number</code> which isn't I want. So can we stop this?</p>

<p>Thanks</p>
