Gist bdf18bc2f317cb12b0db8e964e212b94
✓ Published0🌍 Public
MMistyBlunch
Last edited Mar 1, 2018
Created on Mar 1, 2018
This C++ console program determines whether a user-provided word is a palindrome. It first prompts for input via the standard `cin` stream, then passes the string to the `polindromo_palabra` function. That function measures the word's length, rejects empty or single-character inputs with specific messages, and builds a reversed copy of the string by iterating backward through the original. It then compares the original to the reversed version using the `!=` operator, printing whether the word is or is not a palindrome. The example uses standard C++ libraries (`iostream`, `stdio.h`, and the `string` class) with no external visualization or graphics APIs.
AI-generated description