- 1

palindrome check c++ critical error

this program is not running ...output screen is only showing blank screen please help me out of this

28th Dec 2019, 10:35 AM
rohit gupta
rohit gupta - avatar
3 Réponses
+ 11
Please insert the code along with your question in which you are facing error ‚úĆ https://www.sololearn.com/post/75089/?ref=app
28th Dec 2019, 10:37 AM
Nova
Nova - avatar
+ 2
Which Program are you talking about? Attach the code so we can check
28th Dec 2019, 10:36 AM
GodSpeed
GodSpeed - avatar
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.
28th Dec 2019, 10:52 AM
Théophile
Théophile - avatar