I have to use a class that converts number (2-9) to words ie; 368253 is double.
I have a file of 100,000 words that I have to "bounce" the string of numbers off of to form any possible string of words. It also has to be able to convert a full message such where the user would input numbers that correspond to words separated by a white space. I have the class written, but I'm not sure if that's even right. I have been burying my head in a few different text books as well as searching the internet with no luck. I don't want it done for me but I could use a few pushes in the right direction. Here is what I have so far (not much I know).
#include <cstdlib>
#include <iostream>
#include <string>
using namespace std;
class KeyPad
{
private:
string Number;
string Word;
public:
void readnumbers(string nums);
void readwords(string words);
void check_numbers();
void convert_nums_to_words();
void convert_words_to_nums();
};