+ 1

How to code stack in c++?

I want to code a dynamic mstack in c++!

8th Oct 2018, 6:56 PM
M.Stehr
2 Respuestas
+ 2
Use vector to store elements. vector.push_back() to add new one. vector.back() to access last. vector.pop_front() to delete latest.
8th Oct 2018, 8:13 PM
Sergey Ushakov
Sergey Ushakov - avatar