Wednesday, May 18, 2016

Program Using Built in Stack in C++


Program Using Built in Stack in C++This program is example of how to include built in stack file and use its functions in C++.First in Last Out.
#include <stack>using namespace std;int main(){ stack <int> s; s.push(1); s.push(3); s.pop(); // 3 remove cout << s.top();}apart from these functions there are a lot of more functions of stack...-->

No comments:

Post a Comment