Ok I seem to have all the loops in place and somewhat working
and I found in other threads good info on actually checking to see if its a palindrome. But what is wrong with this loop?
while(infile) //files already open and I have two arrays, input,test
infile.getline(input,MAX) // MAX=50
input[index]=tolower(input[index]; // to lower case
if(isalpha(input[index2])) // checks if its a letter
My thinking on the if statement is it will check input and if its a letter it will assign test counter to the letter in input and if its not it should fall through and go to input.
OK heres the problem if I run A@bbA through it , it outputs
I think its something to do with if statement ??
Thanks for the help