Add CMakeLists for all datastructs
+ Reorder, refactor comments
This commit is contained in:
18
cpp/datastructs/queuelist/CMakeLists.txt
Normal file
18
cpp/datastructs/queuelist/CMakeLists.txt
Normal 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})
|
||||
@@ -65,4 +65,3 @@ int main()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user