这是我的程序,请大侠看看
#include <iostream>
using namespace std;
int jiweishu(int n);
int main()
{
int a;
cin >> a;
cout << jiweishu(a);
}
int jiweishu(int n)
{
int ws = 0;
while (n > 0)
{
n /= 10;
ws++;
}
return ws;
}