I presume you are doing a console program.Originally posted by BaByBoY:he say wat if user input A-Z or no greater than 24
how????
i damn struck...
while ((std::cout << "Input time in 24 hr format" ) && (( specify your range here )) {
std::cout << "out of range; ";
std::cin.clear();
std::cin.ignore(std::numeric_limits::max(), '\n');
}
I think this is just simple error checking of the input.Originally posted by BaByBoY:the prof wans am and pm one
he say wat if user input A-Z or no greater than 24
how????
i damn struck...