string result;
to store words of numbers, but if you can have only one variable of type int, you can print words in program execution not store them.
|
|
Numbers(int x);
object.Numbers(userInput);
Numbers object;
and change line 42 to Numbers object(userInput);
void add(int x);
object.add(userInput);
|
|
static const string words_array[32];
|
|
|
|
|
|
Enter number from 0 to 1000.000.000: 1100 one thousand one hundred |