TA贡献1829条经验 获得超7个赞
不能直接定义,但可以通过函数对象实现,void fun(){struct nestfun{void operator()(int val){std::cout << val;}}// 函数对象nesetfun fun;fun(10);}
举报