[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[COMP/HELP]Generalised event hander




Cha`o ba'c TA,

Ca'm o+n ba'c -da~ cho chi? da^~n du+o+'i -da^y.

Huy


3/ Du`ng C++:

Wrap ca'i bie^'n ddo' va`o mo^.t class, co function ddu+o+.c go.i khi
member 
thay ddo^?i. Vi' du. nhanh:

class Status
{
  bool symtomp;
  void TakeImmodiumTablet ();
public:
  bool operator = (bool s)
   {
     symptom = s;
     if (symptom)
       TakeImmodiumTablet ();
     return symptom;
   }
};



__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com