Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   second last element of the vector (http://www.go4expert.com/forums/element-vector-t23810/)

heidik 9Nov2010 19:56

second last element of the vector
 
Could anyone please tell me how to get the second last element of the vector since back() returns the last element

Thanks

xpi0t0s 10Nov2010 14:46

Re: second last element of the vector
 
Does this help?
http://www.cplusplus.com/reference/stl/vector/

heidik 10Nov2010 15:57

Re: second last element of the vector
 
YES xpi0t0s Thanks :)


All times are GMT +5.5. The time now is 18:59.