Add RD of a doublelist class using templates

+ Fix 'insert at' function from printing result output twice
This commit is contained in:
2020-07-30 16:39:28 -04:00
parent c31a7a6571
commit 3729e15f1e
3 changed files with 81 additions and 53 deletions

View File

@@ -11,6 +11,8 @@
#include "doublelist.h"
#include <iostream>
#define TYPE std::string
enum OPS {
EXIT, INSERT, INSERTAT, EMPTY, PEEK, PRINT, FIND, REMOVE, REPLACE
};
@@ -19,10 +21,11 @@ int main()
{
std::cout << "Driver: \n";
DoubleList testList;
DoubleList<TYPE> testList;
bool exit = false;
int choice = -1;
int val, key;
TYPE val;
TYPE key;
while (!exit)
{