我对如何在C++中检查输入变量的数据类型有一个疑问.
#include<iostream>
using namespace std;
int main()
{
double a,b;
cout<<"Enter two double values";
cin>>a>>b;
if() //if condition false then
cout<<"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
}
Run Code Online (Sandbox Code Playgroud) c++ ×1