#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<windows.h>
#include<string.h>
int main()
{
char str[] = "abcba";
char j = strlen(str) - 1;
int i = 0;
if (str[i++] == str[j++])
{
printf("%s is IsPalindrome\n", str);
}
else
{
printf("%s is not IsPalindrome\n", str);
}
system("pause");
return 0;
}
C语言判断是否为回文字符串
最新推荐文章于 2022-11-16 19:03:10 发布