-
You should hang out with this guy...
Code:
void GetInput()
{
Controller controlInput;
Menu menu;
bool inputIsInvalid;
char input[80];
int length;
int i;
do
{
inputIsInvalid = true;
while(inputIsInvalid)
{
menu.MainMenu();
cout << endl << "Enter Option: " ;
cin >> input;
length = strlen(input);
if(length > 1)
{
cout << "input is invalid" << endl;
}
else if(!isdigit(input[0]))
{
cout << "input is invalid" << endl;
}
else
{
i = atoi(input);
inputIsInvalid = false;
}
cout << endl << endl ;
controlInput.CommandControl(i);
}
while (i != 3);
}
void main()
{ //error C2062 is pointing to this line
Menu::Info();
GetInput();
}
Notice anything odd?
Quzah.
-
errrr :rolleyes:
bows head in shame
Case closed.....
Thanks
for the help