摘要: std::accumulate(std::begin(x), std::end(x), string(), [](string &ss, string &s){return ss.empty() ? s : ss + " " + s;}) ss是初始值 string(),相当于上一个值 s为当前遍历 阅读全文
posted @ 2022-07-22 23:51 douzujun 阅读(208) 评论(0) 推荐(0) 编辑