This project is a simple console-based email system application that demonstrates the fundamental concepts of data structures. The primary intention behind this project is to explore and implement essential data structure functionalities, such as queues, file handling, and basic operations.
- Email Management: The application allows users to create, delete, and read emails.
- Queue Implementation: A queue data structure is employed to manage email files in a first-in-first-out (FIFO) manner.
- File Handling: The project involves file handling operations to store and retrieve email data.
The queue is used to manage the email files. It provides the following functionalities:
- Initialization: Initialize an empty queue.
- Enqueue: Add an email file to the end of the queue.
- Dequeue: Remove an email file from the front of the queue.
- isEmpty: Check if the queue is empty.
- isFull: Check if the queue is full.
- Email Struct: Represents an email with sender, subject, and message fields.
- Queue Struct: Manages the email files using a circular queue.
- Compile: Compile the source code using a C compiler.
- Run: Execute the compiled program.
- Choose Operation: Follow the on-screen menu to create, delete, or read emails.
main.c
: Main source code file containing the program logic.emails.txt
: File to store email data.mails.txt
: File to keep track of email file names in the queue.