摘要: #include <iostream>#include <memory.h>using namespace std;int pow(int x){ int a=1; for(int i=1;i<=x;i++) a=10*a; return a;}int ln(int x){ int i=1; while(1) { if(pow(i)<=x) i++; else break; } return --i;}void half(int x,int h){ if(h==2) { while(x>0) { cout<<(x%10); x=x/10; 阅读全文
posted @ 2012-02-06 13:18 wuzhibin 阅读(133) 评论(0) 推荐(0)