TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: FRANK MASINGILL
from: KURT KUZBA
date: 1998-02-20 21:58:00
subject: Boolean logic

FM>    Something's obviously wrong with the program below.
   The only problem I found was that you neglected to include
   a default return statement which will execute under ANY
   conditions and appears as the last thing in main().
   Any code in a function must be followed by a return statement
   when a return is expected. In other words, there can be no
   code which does not lead to a return. You have an if(){} with
   no return where the if(){} is not executed.
> ] Uh-oh... No more treats. Time to learn some new tricks......
---
---------------
* Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)

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