From df121f2d56f3e27a7d5c28a8b3c96850b4a3fd15 Mon Sep 17 00:00:00 2001 From: himmihimmi <57033435+himmihimmi@users.noreply.github.com> Date: Sat, 26 Oct 2019 15:08:51 +0530 Subject: [PATCH] Add files via upload --- stackSTL.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 stackSTL.cpp diff --git a/stackSTL.cpp b/stackSTL.cpp new file mode 100644 index 0000000..a41afef --- /dev/null +++ b/stackSTL.cpp @@ -0,0 +1,24 @@ +#include +#include +using namespace std; + +void showstack(stack s){ + while(!s.empty()){ + cout<<" "< s; + s.push(1); + s.push(2); + s.push(3); + s.push(4); + cout<<"Full stack is :" ; + showstack(s); + + return 0; +}