This project implements a queue data structure using two stacks. It includes C source code files, a header file, and instructions for running the code on Windows and Linux.
- Shadrack Omondi Odielo - Reg No: SCT221-0479/2021
- Giscard Njeru - Reg No: SCT221-0543/2021
- Charles Ndiritu - Reg No: SCT221-0964/2021
-
library.h
: Header file that declares the structures and functions used in the program. -
stack.c
: Source code file containing the implementation of stack operations for pushing, popping, and checking emptiness. It also includes a structure to create a stack. -
queue.c
: Source code file that implements a queue using two stacks. It includes enqueue, dequeue, and isEmpty functions, as well as a structure to create a queue. -
main.c
: The main program file that demonstrates how to use the queue data structure with enqueue and dequeue operations.
// Function and structure declarations are documented in the header file.