1234567891011121314151617181920212223242526
#include <iostream> #include <string.h> #include <ctype.h> using namespace std; void main() { const int StrnChar(80); char Line[StrnChar + 1]; do { cout << "Enter a string: "; cin.getline(Line, StrnChar + 1); if ((strcmp(Line, StrnChar + 1) == 0); { cout << " Not Palindrome "; } else { cout << " Palindrome "; } } while (strcmp(Line, "END") != 0); }
Line
if
StrnChar