I have know idea what my teacher wants on this....... Consider the following fun
ID: 3621702 • Letter: I
Question
I have know idea what my teacher wants on this.......Consider the following function code that recursively determines whether the given string is a palindrome. There is an error in the recursive case. Correct that, and complete the program (with the main function). Make sure you test it.
isPalindrome(string str)static int count =0;" Comparing "<<str;(str.length()<=1)
return
true;
else
{
count++;
return
}
}
((str.at(count-1)==str.at(str.length()-count))&& isPalindrome(str.substr(count,(str.length()-count))));
{
cout<<
if
bool