Hello, i need help to convert any 1, 2, or 3 digit number into words using string/array method in C++. For example, 111 should read one hundred and eleven, 011 should read eleven, 001 should read one. I would much appreciate it if you could help me solve this problem. I have done a little of it so far and it is correct up to this point and no modifications should be necessary. It should also be short (30 lines max.)
#include<iostream>
using namespace std;
int main()
{
int A,B,C,number;
string a[]={"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
string b[]={"twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
string c[]={"hundred"};
cout<<"Please enter a three digit number";