假设我有一个类如 class c { // … void *print(void *){ cout << "Hello"; } } 然后我有一个向量c vector<c> classes; pthread_t t1; classes.push_back(c()); classes.push_back(c()); 现在,我想在c.print();上创build一个线程c.print(); 以下是给我下面的问题: pthread_create(&t1, NULL, &c[0].print, NULL); 错误输出:无法将参数'3'转换为'void *(tree_item :: )(void )'为'void *( )(void )'为'int pthread_create(pthread_t *,const pthread_attr_t *,void *( ) ),void *)'