- 1
palindrome check c++ critical error
this program is not running ...output screen is only showing blank screen please help me out of this
3 odpowiedzi
+ 11
Please insert the code along with your question in which you are facing error ✌
https://www.sololearn.com/post/75089/?ref=app
+ 2
Which Program are you talking about?
Attach the code so we can check
0
I assume you're talking about your code 'love cal'.
First of all, use the c++ features : use the 'string' header! You can define a string by :
string ch = "civic" ;
Then you've got directly the length (len = ch.size()).
Then, in your main loop where you're checking if the string is a palindrome, don't forget that the last char isn't ch[len] but ch[len - 1]. And that's all.