摘要:
1.新增不需要赋值即可初始化 //C++98 int a = 1; int* p1 = new int[3]; Date d1(2022, 9, 26); //C++11 Date d2{ 2022,9,27 }; int* p2 = new int[3]{ 1,2,3 }; int b{ 1 }; 阅读全文
1.新增不需要赋值即可初始化 //C++98 int a = 1; int* p1 = new int[3]; Date d1(2022, 9, 26); //C++11 Date d2{ 2022,9,27 }; int* p2 = new int[3]{ 1,2,3 }; int b{ 1 }; 阅读全文
posted @ 2022-09-26 21:50
lemon-Breeze
阅读(45)
评论(0)
推荐(0)
摘要:
运用lambda表达式和包装器 150. 逆波兰表达式求值 - 力扣(LeetCode) class Solution { public: int evalRPN(vector<string>& tokens) { stack<long long> s; map<string,function<lo 阅读全文
运用lambda表达式和包装器 150. 逆波兰表达式求值 - 力扣(LeetCode) class Solution { public: int evalRPN(vector<string>& tokens) { stack<long long> s; map<string,function<lo 阅读全文
posted @ 2022-09-26 20:41
lemon-Breeze
阅读(18)
评论(0)
推荐(0)

浙公网安备 33010602011771号