How and when to use if(!(cin>>x)) and what does it mean and in how many ways it can be used in a code