TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: RICK BISCHOFF
from: JANI SAKSA
date: 1997-03-30 21:16:00
subject: Re: Bit Fields

 -=> Propably Rick Bischoff wrote to All <=-
 Hello Rick!
 RB> Does anyone know how to declare a variable that holds only one bit of
 RB> information.. (You know only two values (0 or 1)) ???
That's easy but it will always take one byte of memory. just use normal char 
variable. When it's 0 then the bit is off and when it's 1 then bit is on 
(0=00000000 1=00000001 2=00000010 3=00000011...).
 RB> Thanks..
/* Sir Robin - Falling Star Productions **
** http://www.cedunet.com/~jsaksa ......*/
... I went to an optician who also does c++ - he sold me some NEW CLASSES!
--- BBBS/2 v3.33 How-C
---------------
* Origin: Cat-Box - 02-4841086 (2:222/120)

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