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?

27th Dec 2016, 12:58 PM
Hrishikesh Bawane
Hrishikesh Bawane - avatar
2 Réponses
+ 4
#include <stack> and for example if you want a stack of strings you just do stack<string> mystack
27th Dec 2016, 1:31 PM
Karl T.
Karl T. - avatar
0
Duhh!! Just like vector it seems... Thanks man!!
27th Dec 2016, 5:12 PM
Hrishikesh Bawane
Hrishikesh Bawane - avatar