Closed tazok81 closed 11 months ago
Hi,
I need to remove the last element from vector with "pop", but I need to process that element after pop. Please how get I get it? I expected function like back()...Or maybe how get the element at index?
seems v[size-1]; works
Yup, that's exactly how
Hi,
I need to remove the last element from vector with "pop", but I need to process that element after pop. Please how get I get it? I expected function like back()...Or maybe how get the element at index?