Basically, make a program that has to check whether the user-given input is an alphabetic character or not.
I also have to use a function to test the input, and have it return either true or false, then have an output depending on whether the function returned true or false.
This is what I have so far:
The problem is that no matter what the input is, it's always returning 'true' and the console is always displaying "Your character is an alphabetic character." Help, please!
Line 16, you're testing whether or not cAnswer = 0 or 1. cAnswer is your users input, not the return from the function IsCharAlpha(). To have this work properly, you will need to assign the result of IsCharAlpha() to a variable, on line 14
Sigh, I completely overlooked these seemingly 'small' details. Thanks so much.
Also, I did have the comparison operator when I first did this, but then nothing showed up on my console after I ran it so I thought it would be different since I was using a bool function. In any case, everything's clear now.