wordpress swf插件,如何做网站的优化和推广,wordpress更新内容,进入百度利用指针判断字符串是否为回文。(正读和反读都一样的字符串)
输入格式#xff1a; 输入字符串
输出格式#xff1a; 输出YES或者NO
输入#xff1a; wenew
输出#xff1a; YES
#include iostream
#include algorithm
#include string
using …利用指针判断字符串是否为回文。(正读和反读都一样的字符串)
输入格式 输入字符串
输出格式 输出YES或者NO
输入 wenew
输出 YES
#include iostream
#include algorithm
#include string
using namespace std;string x,y;int main()
{cinx;y x;reverse(y.begin(),y.end());if(x y)coutYESendl;elsecoutNOendl;return 0;
}