TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: RAFA VELILLA
from: DANIEL JONES
date: 1997-08-02 10:03:00
subject: Signs of numbers

RV>    I think you are a little lazy ¨aren't you? The program is very ea
Perhaps inexperienced?
RV> template
RV> int sign(tipo x)
RV>     {
RV>     if (x>0) return(1);
RV>     if (x<0) return(-1);
RV>     if (x=0) return(0);
if(x == 0) return 0; 
would work better here.  Of course, since you know the number isn't
greater or less than 0 by this point, a simple 
return 0; 
would work even better.
RV>  KT>        kjt
RV>    What do you mean "kjt"?  :-?  :-P
I believe those were the posters initials.
Regards,
Daniel              ddjones@pinn.net
---
 þ RM 1.31 1604 þ ... I love my country...But fear my government....
---------------
* Origin: Selective Source Virginia Beach, VA (757)471-6776 (1:275/102)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.