mtraceur
9
Q:

.push_back function c++

// push_back equivalent
ArrayList<int> a = new ArrayList<int>();
a.add(2);             // Add element to the ArrayList.
a.add(4);

// pop_back equivalent.
a.remove(a.size()-1); // Remove the last element from the ArrayList.
1
myvector = {1, 2, 3, 4, 5};
myvector.push_back(6)
4
(Things).push_back(Items)
0

New to Communities?

Join the community