会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
瓜蛋的博客
专一、持久!立足长远,循序渐近,计划行事,勿在浮沙筑高墙!
博客园
首页
新随笔
联系
管理
2011年1月13日
判断一个数为多少位 比如 3 是 1位 102 是3位。
摘要: //判断一个数为多少位 比如 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)
编辑
公告