second last element of the vector

heidik's Avatar, Join Date: Oct 2010
Contributor
Could anyone please tell me how to get the second last element of the vector since back() returns the last element

Thanks
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Does this help?
http://www.cplusplus.com/reference/stl/vector/
0
heidik's Avatar, Join Date: Oct 2010
Contributor
YES xpi0t0s Thanks