[POINTS[word[i]] work, I don't seem to get it, somehow I got it to work, but many times it is showing incompatible comparison between type int and char.
The problem is that
word is a
string and that indices of
POINTS is an array of
int's. You need to do something to the result of
word[i] to turn it into an integer, where
A gets you the value of
0 and so forth for all the other letters. You have several options, one thing they point out is to potentially use
isupper functions which will return true if the variable passed to them is lower case or upper case respectively.