c++多线程与函数指针的实例 // 1.函数指针 #include <thread> #include <iostream> using namespace std; void fun(int x) { while (