TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: RICK BISCHOFF
from: JASON HENDRIKS
date: 1997-03-22 23:23: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)) ???
A very useful header file..
// BOOLEAN.H
enum boolean{false, true};
inline boolean operator!(boolean bState)
{  return (bState == true ? false : true);  }
--- Maximus/2 3.01
---------------
* Origin: CYBERSPACE/2 þ Kingston, Ont þ 14.4 & 33.6 (1:249/117) (1:249/119)

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