Import backup from 2004-05-23

This commit is contained in:
josh committed 2017-07-25 22:23:46 -04:00
1 parent a982312d2c
commit 6d941b7b16
12 files changed
+85 -59

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
#include "LinkedList.h"
+1 -1
View File
@@ -106,7 +106,7 @@ LinkedList<T>::LinkedList()
template <typename Element>
LinkedList<Element> & LinkedList<Element>::insert(int index, Element e)
{
if (index == count)
if (index == count-1)
push_back(e);
else if (index >= 0 && index < count)
{