TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRISTOPHER BUTLER
from: HERBERT BUSHONG
date: 1997-04-09 11:03:00
subject: bytes :)

::> If I've got two variables, stored as arrays of 3 bytes:
::> typedef byte DateType[3];
not with this you don't, you've only decared a data type (and incorrectly).
That should be:
typedef char byte;
byte Datatype[3];
::> How do I test whether one is greater than the other?
 if (DataType[0] > DataType[1])
   /*  code  */;
 if (DataType[1] > DataType[2])
   /*  code  */;
Of course, since this is the C++ conf, you should probably encapsulate it in 
a 
class 
#  Herbert Bushong    harchon@centuryinter.net       [TEAM OS/2]    
-  Blackbeard's BBS   Intelec: 239:600/0            
+  Fido: 1:19/19      http://www.win.net/eunicecity/stltcc/hbush/
---
   RM 1.31 2508   Ponderosa Farr: Vulcan sex on "Bonanza".
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)

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