vector remoce last added elemtn c++ code example
Example 1: c++ remove last element from vector
vector.pop_back();
Example 2: remove the last element of a vector in cpp
vectorname.pop_back();
vector.pop_back();
vectorname.pop_back();