摘要: //判断一个数为多少位 比如 3 是 1位 102 是3位。#include <iostream>using namespace std;int main(){ int a; cout<<"input a num"<<endl; cin>>a; int t=1; for(int i=10;i<10000000;i*=10,t++) if(a&... 阅读全文
posted @ 2011-01-13 23:42 瓜蛋 阅读(1420) 评论(1) 推荐(0) 编辑