Why does cin, expecting an int, change the corresponding int variable to zero in case of invalid input? [duplicate]

前端 未结 2 435
栀梦
栀梦 2020-12-06 09:13
热议问题