how do you check if cin fails?

how do i know if cin fails when getting the input? do i use an if statement or something to see the value?
0 Replies
No replies yetBe the first to reply to this messageJoin