int or Double
Simple test to determine int or double in input stream – cin>>a; if(a-(int)a==0) { cout<<“integer”; } else { cout<<“double”; Advertisements
Simple test to determine int or double in input stream – cin>>a; if(a-(int)a==0) { cout<<“integer”; } else { cout<<“double”; Advertisements
I found it necessary to write a logging method in “C” that printed not only a variable argument list but …