I want to know how to write a program to check wether the given string is a palindromes? create a program using C++.