Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/09/2014, 00:33
Fw190
 
Fecha de Ingreso: junio-2010
Ubicación: Madrid
Mensajes: 620
Antigüedad: 14 años
Puntos: 73
Respuesta: Pasar de segundos a horas,minutos y segundos correspondientes.

Te corrijo un poco:

Código C:
Ver original
  1. void segsToHMS(const unsigned int sgs, int& h, int& m, int& s)
  2. {
  3.     h = sgs / 3600;
  4.     m = (sgs % 3600) / 60;
  5.     s = sgs % 60;
  6. }