因为end()指向容器最后一个元素后面的位置。如果要用end(),要这样:
vector::const_iterator i = vectorOfObjects.end(); i--; cout << *i << endl; // Prints the last element of the container
上一篇 大数运算
下一篇 SSH连接服务器,防止训练中断方法
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号