I learn C++ by a book, and always when I have a task to do, I'll add some of my features. Now I wanted to add "check for dummy people", and if they write fractional number, not integer, the console will be closed. I wanted to do like that:
cin >> timing;
if (timing == double) {
...
But the Visual Studio compiler says "type name is not allowed"
.
Please, tell me how to do this check