Claudio_FF:
La condizione:if ( ore == 0, min == 0, sec == 0)non sapevo neppure fosse sintatticamente corretta, in effetti non so cosa fa.
Sicuramente NON fa quello che lui si aspetta ...
... l'espressione viene valutata da sinistra a destra, l"operazione" viene eseguita ed il risultato scartato, dopo di che si prosegue sino all'ultima che è l'unica che, oltre ad essere "eseguita" viene anche presa in considerazione.
In the C and C++ programming languages, the comma operator (represented by the token ,) is a binary operator that evaluates its first operand and discards the result, and then evaluates the second operand and returns this value (and type).
Guglielmo