Problem with a char variable set as a letter
Ok in a program I'm working on I have a variable declared as such:
Now in a function I'm trying to set this variable to equal a letter based upon the comparison of variable to a number, such as this:
Now, I was taught that the "char" variable was used to store a letter. If so why am I getting the error: invalid conversion from `const char*' to `char'? Is there a diffrent variable I should use? Would it be better to use a string as the variable type? Or if possible explain what the error meant?
if(gradevar>=1 || gradevar<=1&&gradevar>=.90)
Also I have tried using an array and I get the same error.