题目详见网址
https://pintia.cn/problem-sets/994805046380707840/problems/994805136889593856
#include <iostream>
#include<string>
#include<bits/stdc++.h>
using namespace std;
int main()
{
char N[10][5]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
int i,j,len;
char num[10];
cin>>num;
i=0;
if(num[i]=='-')
{cout<<"fu"<<" ";
i++;}
len=strlen(num);
for(j=i;j<len-1;j++)
cout<<N[num[j]-'0']<<" ";
cout<<N[num[j]-'0']<<endl;
return 0;
}