File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed
Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ /* *
2+ * Created by ahmad on 11/26/16.
3+ */
4+
5+ #include " LLStack.h"
6+
7+ template <class type > LLStack::LLStack () {}
8+
9+ template <class type > void LLStack::push (type data) {}
10+
11+ template <class type > type LLStack::pop () {}
12+
13+ template <class type > bool LLStack::isEmpty () {}
14+
15+ template <class type > long LLStack::size () {}
Original file line number Diff line number Diff line change 1+ /* *
2+ * Impelementation of stack with Linked List.
3+ *
4+ * -------------------------------------------------------------
5+ * Created by ahmad on 11/26/16.
6+ */
7+ #ifndef STACK_LLSTACK_H
8+ #define STACK_LLSTACK_H
9+
10+
11+ template <class type > class LLStack {
12+ private:
13+
14+ public:
15+ LLStack ();
16+ void push (type data);
17+ type pop ();
18+ bool isEmpty ();
19+ long size ();
20+ };
21+
22+ #include " LLStack.cpp"
23+ #endif // STACK_LLSTACK_H
You can’t perform that action at this time.
0 commit comments