TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JASON HENDRIKS
from: HERMAN SCHONFELD
date: 1997-03-30 08:06:00
subject: Bit Fields

 RB> Does anyone know how to declare a variable that holds
 RB> only one bit of information.. (You know only two values
 RB> (0 or 1)) ???
JH>A very useful header file..
JH>// BOOLEAN.H
JH>enum boolean{false, true};
JH>inline boolean operator!(boolean bState)
JH>{  return (bState == true ? false : true);  }
That would be pretty useless. So much overhead for a little boolean variable.
... A program is used to turn data into error messages.
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)

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