Red de conocimiento informático - Conocimiento del nombre de dominio - Urgente c Encuentra la diferencia entre dos tiempos

Urgente c Encuentra la diferencia entre dos tiempos

/* ¡¡¡Puede manejar espacios!!!*/

#include

#include

struct?TTime

{ int?h,m,s; long?GetSec(){return?3600L*h+60*m+s;} void?StrToTime(char?_str[] ) { int?i,j,len=strlen(_str); /*Eliminar espaciado* for(i=0;i

if(_ str[i]== '?')

{

for(j=i;j

--len;

i=-1;

continuar;

} /*Leer hora** j=0; =0;i

if(_str[i]==':')

romper;

si no

p>

j=j*10?+?_str[i]-'0'; h?=?j /*leer minutos*/ j=0; +i)

if(_str[i]==':')

romper;

si no

j=j * 10?_str[i]-'0'; m?=?j; /*Cuenta regresiva** j=0; *10?_str[i]-'0'; s?=?j; } vacío?ToPlan(long?t) { int?hh,mm,ss; hh?=?t/3600; ?=?t/60; t%=60; ss=t; printf("%2.2d:%2.2d:%2.2d\n",hh,mm,ss); Ta,Tb,Tc;