Hi, what i want to do is, have a cin, and if the input the user puts in is anything other than 8 numbers, it displays an error saying invalid input.

How can i do this?