补上win10+vs2019的运行结果(正常):
C:\Users\92787\source\repos\books_sourcecode\Using_STL>test
skdjfskjfdlkdsaj lkjlks jd fkj ksdjf kdsjfksj kkdsjfkdsj fkj dsfkjkds fjkdsfj kjdsf kdsfj
^Z
skdjfskjfdlkdsaj lkjlks jd fkj ksdjf kdsjfksj kkdsjfkdsj fkj dsfkjkds fjkdsfj kjdsf kdsfj
=>before cin.clear()[fail,eof,bad]: [110], state-good: 0
after cin.clear()[fail,eof,bad]: [000], state-good: 1
sdf dskfj kdsfj djf kdfj kdfj kdfj
^Z
C:\Users\92787\source\repos\books_sourcecode\Using_STL>
--
FROM 61.149.156.*