Import backup from 2004-05-23
This commit is contained in:
1 parent
a982312d2c
commit
6d941b7b16
12 files changed
+85
-59
No files matched your search
@@ -0,0 +1,3 @@
|
||||
|
||||
#include "LinkedList.h"
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user