because operator >> sees anything other than whitespace as an input and if its not the expected type of input sets the failbit. A comma and a lower case t are both not whitespace so they will not be disregarded.