在 C++ 中,可以使用关键字 "auto" 来表示函数指针。举个例子: int (*pFunc)(int); // 传统的定义方式 auto pFunc = [](int x){return x*x;}; // 使用 auto 定义