I need help figuring out how to do error checking with military time. So that if the value is over 59 (ex 1372) it gives an error message. My C++ knowlege is fairly basic
legendofme
0
Newbie Poster
Recommended Answers
Jump to PostUm, do you mean something like:
if(minutes > 59) { //whatever error you want to come up, ex: cout << "Error: minutes entered was over 59"; }
where minutes is already defined as the number of minutes you got from the user.
All 3 Replies
CoolGamer48
65
Posting Pro in Training
legendofme
0
Newbie Poster
CoolGamer48
65
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.