Minor fixes

This commit is contained in:
Kyler 2017-07-17 19:13:45 -07:00
parent 9af798a677
commit e93ecda453

View File

@ -62,6 +62,9 @@ void enque(int x) {
}
}
/**
* Takes the next item from the Queue.
*/
int deque() {
int returnData;
if(head == NULL) {
@ -76,3 +79,47 @@ int deque() {
head->next = NULL;
}
}
/**
* Returns the size of the Queue.
*/
int size() {
return count;
}