
15/09/2014, 00:33
|
| | Fecha de Ingreso: junio-2010 Ubicación: Madrid
Mensajes: 620
Antigüedad: 14 años, 9 meses Puntos: 73 | |
Respuesta: Pasar de segundos a horas,minutos y segundos correspondientes. Te corrijo un poco:
Código C:
Ver originalvoid segsToHMS(const unsigned int sgs, int& h, int& m, int& s) { h = sgs / 3600; m = (sgs % 3600) / 60; s = sgs % 60; }
|