This project is a C++ chatbot application designed to simulate a basic conversation flow and process user input. It demonstrates the use of object-oriented programming (OOP) principles and modern C++ features such as smart pointers and standard library containers.
main.cpp
- Main driver code for the chatbot application.ChatSession.h
andChatSession.cpp
- Class that manages a chat session.bot.h
andbot.cpp
- Class representing the chatbot, handling the logic of questions and responses.question.h
andquestion.cpp
- Class representing a question, with query and response.
To build this project, you will need a C++ compiler that supports C++17. Navigate to the project directory and use the following command:
g++ -std=c++17 *.cpp -o ChatbotApp
This will compile all the .cpp files and create an executable named ChatbotApp.
After building, run the project by executing:
./ChatbotApp
Ensure that the file QA.txt is in the same directory as the executable for the bot to function correctly.
The chatbot is designed to simulate simple interactions and is not a substitute for professional advice or help.
Ömer Cinar
Thanks to everyone who contributed to the development and testing of this project.
This project is open source and available under the MIT License.