first OOP project with C++.
I tried to use some of the topics of OOP.
Basically, the program depends on ID to answer. You should show the questions that were sent to you as they will not appear automatically. used file-based system.
-
User Management
- Sign up and log in functionality.
- User data persistence via file storage.
-
Question Management
- Ask and answer questions (anonymous or identified).
- Manage threaded questions.
- List questions for a user and questions asked by a user.
- Delete questions.
- A C++ compiler supporting C++11 or later.
users.txt
andquestions.txt
files store user and question data.
- Sign Up: Create a new user account.
- Log In: Log in to an existing account.
- Ask Questions: Ask other users questions (anonymous or identified).
- Answer Questions: View and answer questions directed to you.
- Delete Questions: Remove questions directed to you.
- List Users: Display a list of all registered users.
users.txt
: Stores user details.questions.txt
: Stores questions and their answers.
User
: Handles user details and serialization.UserManager
: Manages user-related operations like sign-up and login.Question
: Represents a question with support for threads and answers.QuestionManager
: Handles all question-related operations including asking, answering, and deleting.
WriteLine
: Appends or overwrites a file with a line of text.ReadLines
: Reads all lines from a file.SplitLine
: Splits a string into parts based on a delimiter.
NOTE
-
The project still need alot of exceptions handling. (sorry for that)
-
Username consist from one string with no spaces.
-
Try system from diff. account to can understand how system work.
- you can tell me what precent of using opp in the project.
- tell me about any bugs that may be face you during testing .
- suggest features with some hint to do it(prefered).