JK> enum Boolean {
JK> False, True
JK> };
Check if your compiler hasn't a built-in type bool for this.
JK> class MouseInfo {
JK> Boolean installed;
JK> int buttons;
As I understand it, !installed is logically equivalent to buttons==-1.
If this is the case, I would erase "installed"; you could replace it
by a (inline) member function
Boolean Installed() const { return buttons!=-1; }
if necessary.
Thomas
---
þ MM 1.0 #0113 þ Drag me, drop me. Treat me like an object!
---------------
* Origin: McMeier & Son BBS (2:301/138)
|