Greets and thank you for your time,
I am writing a program for my C++ class and I am having trouble with an error-checking function. The idea of the function is to ensure the user enters a number greater than 0. My problem is checking to see if they entered a character/letter instead of an integer.
I tried using if (variable = char) {...} but I quickly discovered that is incorrect. The professor did not specify checking for letters, but I like to be thorough.
This class is a beginner class for C++.