How can I check if two strings are the same case insensitive
L0k3d20uz4 (1)

So I am making a program that checks to see if words are palindromes. I have a word, have reversed the word, but now I need to check if the two strings are the same not worrying about the case of the letters. I have tried using boost/algorithm/string.hpp as suggested by an answer on stackOverflow, but I'm not sure if I'm using it correctly. It does not give me any errors, but instead of displaying true or false, it displays 1 or 0. Please tell me what I'm doing wrong or if there is a better way to do this.

You are viewing a single comment. View All
Bookie0 (6390)

Well 1 is true, and 0 is false, so you could check what the number is and with conditionals determine whether it's a palindrome or not.

Also if you get stuck, you can check this W3 Schools page out for how to check if a string is a pallindrome.

Good luck! :D