Hello,
I'm Ide Swager from Holland.
I just started programming in C++ but I'm pretty experienced in PHP.
I made a calculator, he worked perfect until I wanted a validation (to check if the user inserts letters instead of numbers)
I have made this code:
The number1 and number2 are doubles! (I checked it with cout << typeid(number1).name(); )Code:if (typeid(number1).name() == "double" && typeid(number2).name() == "double") { \\ rest of script } else { cout << "ERROR" << endl; }
And it keeps saying ERROR!
Can you guys help me out?![]()
![]()



LinkBack URL
About LinkBacks




CornedBee
, but 1 more thing: I have this code: