Thursday, December 15, 2011

Can we use " if (!cin)" statement with switch case syntax in C++?

I don't think so. You declare a variable for storing the input data from cin then you validate the variable, not the cin.

No comments:

Post a Comment