资 源 简 介
C++中,成员指针是最为复杂的语法结构。但在事件驱动和多线程应用中被广泛用于调用回叫函数。在多线程应用中,每个线程都通过指向成员函数的指针来调用该函数。在这样的应用中,如果不用成员指针,编程是非常困难的。 -a member of indicators is the most complex grammatical structure. However, in event-driven multi-threaded applications and are widely used in the callback function to call. In multi-threaded applications, each thread through the indicators point to a member function to call the function. In such applications, if it is not a member of indicators, programming is very difficult.