摘要: 1随机输入一个数,判断它是不是对称数(回文数)(如3,121,12321,45254)。不能用字符串库函数#include "stdafx.h"#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ char ss[20]; char *s=new char [20]; cin>>ss; int i=strlen(ss); int j=0; while(i>0){ s[j]=ss[i-1]; ++j; --i; } s[j]='\0'; i=strlen(ss); 阅读全文
posted @ 2013-07-16 22:33 一桶白开水 阅读(332) 评论(0) 推荐(0) 编辑