摘要: std::bind是个c++推出的新的特性,非常有用,让你写起来率试不爽。#include using namespace std;#include int main() { cout int{ return a+b; },placeholders::_1,2); cout<<a(1)<<endl; //小相当于调用这个匿名函数时传的参数是(1,2) return 0;} 阅读全文
posted @ 2013-08-16 15:05 MrBlue 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 右击工程->Properties->C/C++ Builder->Setting->Tool Setting->Miscellanous->Other Flags添加-std=c++0x 阅读全文
posted @ 2013-08-16 14:47 MrBlue 阅读(570) 评论(0) 推荐(0) 编辑