摘要: 在网上上看了道作业题,要求是求整数的右起第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< 阅读全文