Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ vector pop_back

#include <bits/stdc++.h> 
using namespace std;
int main(){
    vector<int> v1{10, 20, 30, 40, 50};
    
    //removing elemenets
    v1.pop_back();  //removes 50
    v1.pop_back();  //removes 40

}
Source by www.includehelp.com #
 
PREVIOUS NEXT
Tagged: #vector
ADD COMMENT
Topic
Name
4+7 =