Add CMakeLists for all datastructs

+ Reorder, refactor comments
This commit is contained in:
2020-07-11 20:55:15 -04:00
parent be91573abc
commit a692a0f631
22 changed files with 168 additions and 50 deletions

View File

@@ -0,0 +1,18 @@
###############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2020 Shaun Reed, all rights reserved ##
## About: An example of a queue implementation ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
##############################################################################
## CMakeLists.txt
#
cmake_minimum_required(VERSION 3.2)
# Define the project name
project(Queue)
# Define source files
set(SRC driver.cpp queuelist.cpp)
# Build an executable
add_executable(QueueDriver ${SRC})

View File

@@ -65,4 +65,3 @@ int main()
}
}
}

View File

@@ -75,7 +75,7 @@ QueueList::~QueueList()
/** enqueue
* @brief Queue a value to the tail of our linked list
*
* @param x The value to be inserted into the queue
* @param val The value to be inserted into the queue
*/
bool QueueList::enqueue(int val)
{
@@ -158,6 +158,7 @@ void QueueList::makeEmpty()
}
}
/******************************************************************************
* Private Member Functions
*****************************************************************************/