For my homework assignment I have to create a class which converts an integer between 0 and 9999 into the written form. For example, 713 would be written as seven hundred thirteen.I wrote a few variations and I think I found the best approach. However, I was wondering if anyone had a moment to comment on my approach. Maybe point out subtle things I might not be taking advantage of.  Things like that.I'll list just the important excerpts from the .cpp and .h files.The following are all static members of the Numbers class:const char* Numbers::lessThan20[] = {  zero,     one,      two,      three,   four,    five,  six,      seven,    eight,    nine,    ten,     eleven,  twelve,   thirteen, fourteen, fifteen, sixteen, seventeen,  eighteen, nineteen};const char* Numbers::over19[] = {  ,       ,      twenty, thirty, fourty, fifty, sixty, seventy,  eighty, ninety};const char* Numbers::hundred  = hundred;const char* Numbers::thousand = thousand;And this is my function to convert the number into a string:std::string Numbers::print() const{  std::string text;  int whole, remainder;  remainder = this->number; // <- number is a member variable of the Numbers class  whole = remainder / 1000;  remainder %= 1000;  if (whole > 0)    text = text + lessThan20[whole] +   + thousand +  ;  whole = remainder / 100;  remainder %= 100;  if (whole > 0)    text = text + lessThan20[whole] +   + hundred +  ;  if (remainder > 19)  {    whole = remainder / 10;    remainder %= 10;    text = text + over19[whole];    if (remainder > 0)      text = text + - + lessThan20[remainder];  }  else if (remainder > 0)    text = text + lessThan20[remainder];  return text;}
Converting an integer into the written form
c++;homework;converting