-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCipherList.cpp
More file actions
37 lines (28 loc) · 975 Bytes
/
CipherList.cpp
File metadata and controls
37 lines (28 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Created 30 November 2009
#include <iostream>
#include "CipherList.h"
//"constructor" defined in header
//CipherList::CipherList() { head = NULL; }
//"destructor" defined in header
//CipherList::~CipherList() { this->makeEmpty(); }
//copy constructor not needed
//CipherList::CipherList(const CipherList& param) {}
//"isEmpty" defined in header
//bool CipherList::isEmpty() { return head == NULL; }
//"addNode": will add a new node to linked list
// New node may point to two or three integers as well as other nodes in list
bool CipherList::addNode(int left, int right, int middle)
{
return true;
}
//"deleteNode": will remove a node from linked list
// Will hand back references to int values being pointed to by removed node
bool CipherList::deleteNode(int& refLeft, int& refRight, int& refMiddle)
{
return true;
}
//"makeEmpty": will delete entire linked list
void CipherList::makeEmpty()
{
//delete everything
}