i played around with it from a different direction and still nothing...
here's the code of this perticular loop:
Code:
int Selection;
char Choice[2];
do
{
cout << "1. HELP MENU \n\n";
cout << "2. INVENTORY DIRECTORY \n\n";
cout << "3. DELIVERY INFORMATION \n\n";
cout << "4. ORDERING DIRECTORY \n\n";
cout << "5. WAITING LIST \n\n";
cout << "0. EXIT \n\n\n\n";
cout << "Enter a number (#) corresponding to your selection - ";
cin >> Selection;
itoa(Selection, Choice, 2);
clrscr(); // clears the screen...
}while((isalpha(Choice[0])) || (Selection < 0 || Selection > 5));
.......
for some reasong i can't get it to work.... maybe i am using a wrong algorithm in a while loop delimeter...... i am sure there's gotta be a way, i am sure people have run into this problem before when asked for int someone entered a char and the loop crashed...??
?? any ideas?
Regards,
matheo917