Skip to content

Commit

Permalink
[LinkedList] Fix error code
Browse files Browse the repository at this point in the history
  • Loading branch information
deunlee committed May 29, 2020
1 parent e3a4435 commit d34319a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions LinkedList/LinkedList.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef __DEUN_LINKED_LIST_CPP__
#define __DEUN_LINKED_LIST_CPP__

#include "LinkedList.h"

namespace Deun {
Expand Down Expand Up @@ -223,3 +226,5 @@ namespace Deun {
cout << "NULL" << endl;
}
}

#endif
7 changes: 4 additions & 3 deletions LinkedList/LinkedList.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#ifndef __DEUN_LINKED_LIST__
#define __DEUN_LINKED_LIST__
#ifndef __DEUN_LINKED_LIST_H__
#define __DEUN_LINKED_LIST_H__

#include <iostream>
#include <new>

namespace Deun {
enum class LinkedListError {
NODE_NOT_FOUND = 1000,
MEMORY_ALLOCATION_FAILED = 1000,
NODE_NOT_FOUND,
};

typedef struct Node {
Expand Down

0 comments on commit d34319a

Please sign in to comment.