How do I check the input data type of a variable in C++?
<p>I'm currently started learning C++, but i've one doubt about how to check the data type of input variable in c++.</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;
int main()
{
 double a,b;
 cout&lt;&lt;"Enter two double values";
 cin&gt;&gt;a&gt;&gt;b;
 if()        //if condition false then
     cout&lt;&lt;"data entered is not of double type"; 
     //i'm having trouble for identifying whether data
     //is double or not how to check please help me 
}
</code></pre>
