What are the actual instances where we need Stack data structure? | Sololearn: Learn to code for FREE!

0

What are the actual instances where we need Stack data structure?

Does cpp provide STL in which stack functions like push, pop etc are available? If yes which is that library?

12/27/2016 12:58:46 PM

Mr_Z!0N

2 Answers

New Answer

+4

#include <stack> and for example if you want a stack of strings you just do stack<string> mystack

0

Duhh!! Just like vector it seems... Thanks man!!