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?
2 Respuestas
+ 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!!