摘要: 有了逆向迭代器,反转就方便多了 vector<int> a = {1,2,3,4,5}; vector<int> c; c.insert(c.end(),a.rbegin(),a.rend()); cout<<c[0]<<c[1]<<c[2]<<c[3]<<c[4]<<endl; 输出: 54321 阅读全文
posted @ 2019-01-11 19:52 zengzhaocheng 阅读(239) 评论(0) 推荐(0) 编辑