摘要:
在网上上看了道作业题,要求是求整数的右起第k位数字的,作为一个爱好者,我练了练手View Code #include<iostream>#include<string>using namespace std;void digit(int n,int k){ char m[50]; int len; itoa(n,m,10); len=strlen(m); if(k<0) cout<<"错误"<<endl; else { if(len>=k) cout<<"第"<<k< 阅读全文
posted @ 2012-04-13 14:18
速才vos
阅读(157)
评论(0)
推荐(0)
浙公网安备 33010602011771号