Yes. It's in the code I showed you earlier. Look at the steps I used to clean up the stream after the comment.
Is there a function call to purge / clear an error in the input stream? cin.clear() didn't work.
You're clearing the error flags, but not removing the bad data from the stream.
Also, be advised that using 0 at the beginning of a number is the notation for octal. In the case of 00 it doesn't matter because zero is the same in any base, but 010 is 8, not 10, so watch out for that.