This project is a simple console-based To-Do List application implemented in C. It allows users to add tasks, view tasks, and delete tasks from their to-do list.
- Add tasks to the to-do list.
- View all tasks in the to-do list.
- Delete tasks from the to-do list.
- C: The programming language used to implement the application.
- Clone the repository:
git clone https://github.com/your-username/to-do-list.git
- Navigate to the project directory:
cd to-do-list
- Compile the code using a C compiler:
gcc -o todo todo.c
- Run the executable:
./todo
Usage
- Run the program.
- You will be presented with a menu:
To-Do List 1. Add Task 2. View Tasks 3. Delete Task 4. Exit Enter your choice:
- Enter the number corresponding to your choice.
- Add Task: Enter the task description when prompted.
- View Tasks: Displays all the tasks in the list.
- Delete Task: Enter the task number to delete it from the list.
- Exit: Exits the application.
Example Output: To-Do List
- Add Task
- View Tasks
- Delete Task
- Exit Enter your choice: 1 Enter the task: Buy groceries Task added successfully!
To-Do List
- Add Task
- View Tasks
- Delete Task
- Exit Enter your choice: 2
Your Tasks:
- Buy groceries
To-Do List
- Add Task
- View Tasks
- Delete Task
- Exit Enter your choice: 3 Enter the task number to delete: 1 Task deleted successfully!
File Structure todo.c: Main C file containing the To-Do List application implementation.