求助,50分
查看原帖
求助,50分
745903
hjsxhst2022楼主2023/1/12 14:39
#include<bits/stdc++.h>
using namespace std;
bool zfhw(string a){
    string b=NULL;
    for(int i=a.length();i>=1;--i)
        b+=a[i];
        if(a==b)
        return true;
        else
        return false;
}
int main(){
    string d;
    cin>>d;
    if(zfhw)
    cout<<"yes";
    else
    cout<<"no";
}

极其不解

2023/1/12 14:39
加载中...