This project is a modular chatbot application built using C++ programming.
It demonstrates the use of multiple header files, file handling, and basic functionalities like chatting, setting reminders, and performing calculations — all combined into one simple console-based chatbot.
| File Name | Description |
|---|---|
main.cpp |
Main source file — controls the chatbot and integrates all modules. |
chatbot.h |
Handles user conversations and chatbot responses. |
reminder.h |
Allows setting, viewing, and managing reminders. |
calculator.h |
Performs basic arithmetic operations like add, subtract, multiply, divide. |
filehandler.h |
Manages reading and writing of data, such as saving chat history. |
chatbothistory.txt |
Stores user and chatbot messages for reference. |
- 💬 Interactive chatbot responses
- 🧮 Built-in calculator
- ⏰ Reminder system
- 🗂️ File handling for chat history
- 🧱 Modular structure using multiple header files
- Functions and Classes
- Header files and modular programming
- File handling (
fstream) - Loops and conditional logic
- Object-oriented structure (optional, if used)
- Compile the project
Open your terminal or IDE (e.g., Code::Blocks, Dev C++, or VS Code) and run:g++ main.cpp -o chatbot
2.Run the executable:- ./chatbot
3.Interact with the chatbot in the console! Your conversations will be saved in chatbothistory.txt.
Example interaction:-
You: hi
Bot: Hello! How can I help you today?
You: tell me a joke
Bot: Why did the computer show up at work late? It had a hard drive!
You: how are you
Bot: I am a bot, I am always good!
You: time
Bot: Current time is: Sat Oct 25 21:18:07 2025
Enter expression (or type 'exit' to go back): 3+5
Result: 8
Enter expression (or type 'exit' to go back): exit
Returning to main menu...
Enter your choice: 2
Enter task: homework
Enter date/time: 20-10-2025 23:10:14
Enter priority (High/Medium/Low): low
Reminder added!
👩💻 Author
Shravni Patil 📫 GitHub: Shravni2008
🌟 Feel free to ⭐ the repo if you like this project!