QUOTE(penguin2 @ 2 Sep, 2008 - 04:35 PM)

If you do it that way, and you make it count the new valid number, so everything works, you will still have a problem if someone enters another invalid number. The easiest way to fix this would be to print a message like "That was not valid input. Valid input would be......" and then deduct 1 from the counter variable (i).
Ok, I not sure how to do that. i tried this but it still does not count the new number. this was the code i tried;
CODE
cout << "You have put an Invalid Entry in, please check the type\n"
<< " of person and reenter your answer: ";
cin >> PeopleTypes[i];
QUOTE(zerogee @ 2 Sep, 2008 - 05:19 PM)

QUOTE(penguin2 @ 2 Sep, 2008 - 04:35 PM)

If you do it that way, and you make it count the new valid number, so everything works, you will still have a problem if someone enters another invalid number. The easiest way to fix this would be to print a message like "That was not valid input. Valid input would be......" and then deduct 1 from the counter variable (i).
Ok, I not sure how to do that. i tried this but it still does not count the new number. this was the code i tried;
CODE
cout << "You have put an Invalid Entry in, please check the type\n"
<< " of person and reenter your answer: ";
cin >> PeopleTypes[i];
I meant this code;
CODE
cout << "You have put an Invalid Entry in, please check the type\n"
<< " of person and reenter your answer: ";
cin >> PeopleTypes[i-1];