I am making a function that takes a number from the user\'s input and finds the absolute value of it. I want to make it return an error if the user inputs anything other than j
Treat user input as std::string or char *, then validate whether it contains a valid digit character.
std::string
char *