PAT1005 Spell It Right

Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.

Input Specification:

Each input file contains one test case. Each case occupies one line which contains an N (≤).

Output Specification:

For each test case, output in one line the digits of the sum in English words. There must be one space between two consecutive words, but no extra space at the end of a line.

Sample Input:

12345

Sample Output:

one five

打串数字(其实是字符串)加起来的和的每个数字用英语输出

呜呜呜!!!我自己的代码写了90行(包括头文件)
小柳柳只写了15行。。(落泪
附上我的狗屎代码->笨拙之极用了俩switch-case学学人家柳姐姐!!
#include<iostream>
#include<iomanip>
#include<stdlib.h>
#include<stdio.h>
#include<algorithm>
#include<math.h>
#include<vector>
#include<string>
using namespace std;
int main() {
    int i = 0;
    int m = 0;
    string s;
    cin >> s;
    while (s[i] != '