Skip to content

shravani2008/chatbot_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Mini Chatbot Project (C++)

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.


๐Ÿ“ Project Structure

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.

โš™๏ธ Features

  • ๐Ÿ’ฌ Interactive chatbot responses
  • ๐Ÿงฎ Built-in calculator
  • โฐ Reminder system
  • ๐Ÿ—‚๏ธ File handling for chat history
  • ๐Ÿงฑ Modular structure using multiple header files

๐Ÿง  Concepts Used

  • Functions and Classes
  • Header files and modular programming
  • File handling (fstream)
  • Loops and conditional logic
  • Object-oriented structure (optional, if used)

๐Ÿš€ How to Run

  1. 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!

About

A modular C++ chatbot project with reminder, calculator, and file handling features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages