c++输入几个数,判断是否为回文数并输出运算了几次?

日期:2017-12-10 08:28:56 人气:1

c++输入几个数,判断是否为回文数并输出运算了几次?

#include using namespace std; bool hui(char c[]) { int len,i,j; len=strlen(c); for(i=0,j=len-1;ij) return true; } int main() { char c[2000]; cin>>c; if(hui(c)) cout<<c<<" 是回文"<<endl; else cout<<c<<" 不是回文&
    A+
热门评论