Another way which I think closely mirrors weaknessforcats algorithm is:
1.)get the number with cin>>
2.)mod(%) the number with 10 to get the least significant digit as the remainder and store it somewhere.
3.)divide the number by 10 to lop that digit.
4.)repeat 2.) and 3.) until digits exhausted
5.)your store is now full of individual digits.
6.)fill a container (array or vector) with the ten digit names e.g."zero","one ",..."nine" .
7.)set up a loop to match each digit with its name and print it.
There are lots more. These are the first few that I found by searching for "number words hundred". The search bar is at the top-right corner of the Bytes page.
Comment