C++ (Qt) void focusInEvent(QFocusEvent *); void focusOutEvent(QFocusEvent *);
C++ (Qt)while(!asleep()) sheep++;