I may not be able to help, but i help others help =/
Code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int dum = 0;
char bleh;
string input;
string str2 = "ABC", str3 = "DEF", str4 = "GHI",
str5 = "JKL";
string str6 = "MNO", str7 = "PQRS", str8 = "TUV",
str9 = "WXYZ";
cout << "Please enter a Seven letter word, all uppercase ";
getline(cin, input);
if (input.length() !=7)
{
cout << "The word you typed in is not seven characters in length";
return 1;
}
while (dum <= 6)
{
bleh = input.substr(0,1);
if (str2.find(bleh) != string::npos)
{
cout << "2";
}
else if (str3.find(bleh) != string::npos)
{
cout << "3";
}
else if (str4.find(bleh) != string::npos)
{
cout << "4";
else if (str5.find(bleh) != string::npos)
{
cout << "5";
else if (str6.find(bleh) != string::npos)
{
cout << "6";
else if (str7.find(bleh) != string::npos)
{
cout << "7";
else if (str8.find(bleh) != string::npos)
{
cout << "8";
else if (str9.find(bleh) != string::npos)
{
cout << "9";
dum++;
}
return 0;
}