ccs problema

Nya'ri Viktor office at flexelec.hu
Wed Jul 27 10:27:33 CEST 2005


Próbáld ki így:
xy=(int16)hour*60+(int16)min;


level wrote:
> hali!
> 
> Van egy problémám:(a mai napon eltelt percek szama)
> 
> byte hour, min;
> int16 xy;
> 
> xy=hour*60+min; sor 255-nél nagyobb eredményt sosem ad.
>  
> xy=hour;
> xy*=60; 
> xy+=min már helyes eredményt ad
> 
> de én egy sorban akarom megcsinálni! Biztos másképp kell, de mit nem csinálok 
> jól?
> 
> 
> -----------------------------------
>  Szponzorunk: http://tonerbolt.hu/
> 
> 





More information about the Elektro mailing list