::> 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)
|