#include<iostream> #include <cstdlib> using namespace std; int main() { //为了在以后便于区分,我这段main()代码叫做main1 auto func = [] { printf("%d\n",1989); }; func(); system("pause"); return 0; }
c++ 匿名函数
原文:http://www.cnblogs.com/yufenghou/p/4137922.html