Skip to content

Commit e2ba2ae

Browse files
committed
Adding header of functions
1 parent 2e73272 commit e2ba2ae

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

LLStack.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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() {}

LLStack.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

0 commit comments

Comments
 (0)