错误xxxxx
#include <iostream>
using namespace std;
int main()
{
char num[105] = { '0' };
cin >> num;
int sum = 0;
int i = 0;
while (num[i] != 0)
{
sum += num[i] - '0';
i++;
}
char ch[][10] = { "ling","yi","er","san","si","wu","liu","qi","ba","jiu" };
int m = 0;
m = (sum % 100);
if (m != 0)
{
cout << ch[m];
sum = sum / 10;
}
m = (sum % 10);
cout << ch[m];
m = (sum / 10);
cout << ch[m];
}