I have this situation.
I have these three if statements with logically related conditions and all three have the same statement to execute.
The program was giving the desired output, but is it possible to combine these if statements in any way (other than using 'OR' OPERATORS and making it a huge condition!
if(end.hour < begin.hour)
if(end.hour == begin.hour && end.minute < begin.minute)
if(end.hour == begin.hour && end.minute == begin.minute && end.second < begin.second)
Aucun commentaire:
Enregistrer un commentaire