accumulate鏈接string元素

關於accumulate的用法見這裏。html 因爲string類型定義了+運算符,所以咱們能夠經過調用accumulate來說vector中全部string元素鏈接起來。ios #include<iostream> #include<vector> #include<string> #include<numeric> using namespace std; int main() {
相關文章
相關標籤/搜索