while(charchoice != 1 || charchoice != 2 || charchoice != 3)
{
cout << "Error! That be in invalid choice!" <<endl;
cout << "Please enter a number correspondin' t' a character." << endl;
getline(cin,strcharchoice);
strcharchoice = strcharchoice[0];
charchoice = atoi(strcharchoice.c_str());
} //loop to catch a error in character selection, waits until error is corrected.
***************************************************************************
That is the section of code giving my trouble for a game im making, when using getline I take in a function as a string, then using atoi convert the first part to an integer to make sure its a valid selection. However if i do in fact enter a valid selection it dosen't register as one. any insight?