TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: RAFA VELILLA
from: ERIK WARMELINK
date: 1997-07-30 19:32:00
subject: Signs of numbers

Rafa, 10 Jul you wrote to Kurt J. Tischer:
 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);
You don't need to test here, but if you want to test, use ==, not =. ;-)
 RV>     }
Bye,
 Erik 
---
---------------
* Origin: WarmelinkE@vertis.nl (2:282/1.60)

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™.