08 2018 档案

linux launch failed.binary not found Linux
摘要:Linux 不需要装MinGW,需要设置两个地方 1 Project->Properties->C\C++ Build->Settings->在右边选择Binary Parsers->勾选GUN ELF Parser然后右下角点Apply and Close; 2 Project->Properti 阅读全文

posted @ 2018-08-29 13:09 奔跑吧,蜗牛! 阅读(755) 评论(0) 推荐(0) 编辑

C++11 占位符placeholders和函数bind用法
摘要:#include #include #include using namespace std; using namespace std::placeholders; void test(int i, double d, const string &s) { cout fp; string s = "foo"; int a = 3; double b =... 阅读全文

posted @ 2018-08-20 13:45 奔跑吧,蜗牛! 阅读(6195) 评论(0) 推荐(0) 编辑

C++11 function函数用法
摘要:// C++11 function #include void print_num(int i) { std::cout getSum = [&](const int &nI1, const int &nI2) { int nSum = nI1 + nI2; std::cout f_display_42 = []() { print_num(42); }; f_displa... 阅读全文

posted @ 2018-08-20 13:25 奔跑吧,蜗牛! 阅读(10223) 评论(0) 推荐(1) 编辑

placement new的用法及用途
摘要:什么是placement new?所谓placement new就是在用户指定的内存位置上构建新的对象,这个构建过程不需要额外分配内存,只需要调用对象的构造函数即可。举例来说:class foo{};foo* pfoo = new foo;pfoo指向的对象的地址你是不能决定的,因为new已经为你做 阅读全文

posted @ 2018-08-20 12:03 奔跑吧,蜗牛! 阅读(7273) 评论(0) 推荐(2) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示