摘要: C++ 11 Lambda表达式 C++11中的匿名函数(lambda函数,lambda表达式) https://gitlab.com/yzzy/modern-cpp/-/blob/main/c16_lambda/main.cpp [](int x, int y) { return x + y; } 阅读全文
posted @ 2022-11-15 23:15 7aughing 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-15 14:29 7aughing 阅读(5) 评论(0) 推荐(0) 编辑
摘要: // sizeof求数组长度 int arr1[]{1, 2, 3, 4}; int arrsize{sizeof(arr1)/ sizeof(arr1[0])}; 阅读全文
posted @ 2022-11-15 14:16 7aughing 阅读(11) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000039844285 int i = 0; int i = {0}; int i{0}; int i(0); 阅读全文
posted @ 2022-11-15 13:43 7aughing 阅读(10) 评论(0) 推荐(0) 编辑