摘要: 从前到后遍历和从后到前遍历 使用rbegin()和rend(),反方向输出 vector<int> a = {2,3,4,5,6,7,8,9}; for(auto i = a.rbegin(); i != a.rend(); i++) cout << *i << " "; 在容器内降序排列 vect 阅读全文
posted @ 2020-11-19 23:10 晓尘 阅读(291) 评论(0) 推荐(0)