摘要: auto decltype Rvalue references and move semantics Lambda expressions nullptr static_assert Range based for loop Trailing return type in functions fin 阅读全文
posted @ 2023-07-06 17:57 言午丶 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 新增了foreach的写法 int main() { int numbers[] = {1, 2, 3, 4, 5}; for (auto number : numbers) { std::cout << number << std::endl; } } 阅读全文
posted @ 2023-07-06 11:00 言午丶 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Null可以用于表示空指针,Nullptr可以用于表示函数指针 由于NULL被定义成常量0,也可以是指针常量,所以新增Nullptr表示空指针 class Test { public: void TestWork(int index) { std::cout << "TestWork 1" << s 阅读全文
posted @ 2023-07-06 10:48 言午丶 阅读(38) 评论(0) 推荐(0) 编辑