All pastes #489504 Raw Edit

David

public cpp v1 · immutable
·published 2007-05-15 15:52 UTC
rendered paste body
void incrementa(Rellotge& r) {    ++r.s; // Siempre incrementa el reloj    if (r.s == 60) {        r.s = 0;        ++.rm; // Incrementa min        if (r.m == 60) {            r.m = 0;            ++r.h;            if (r.h == 24) r = mitja_nit();        }    }}