This is a clinic appointment system implemented in C++ with database functionality using text files and the fstream library. Patients can book appointments with doctors, and administrators can manage doctors and view doctor schedules.
- Patients can choose a doctor and book an appointment time.
- Administrators can add new doctors, delete doctors, and view doctor schedules.
- Ensure you have access to the
doctors.txtfile for storing doctor names. - Each doctor's schedule will be stored in a separate text file named after the doctor.
- Run the program.
- Choose the patient mode.
- Follow the prompts to select a doctor and book an appointment time.
- Run the program.
- Choose the admin mode.
- Follow the prompts to add a doctor, delete a doctor, or view doctor schedules.
- Select the option to book an appointment.
- Choose a doctor from the available list.
- Choose an available time slot for the appointment.
- Provide necessary information for booking the appointment.
- Confirmation of appointment booking will be displayed.
- Select the option to enter admin mode.
- Choose from the available administrative actions:
- Add a new doctor.
- Delete an existing doctor.
- View the schedule of a particular doctor.
- Follow the prompts to perform the selected action.
- C++ compiler
- Clone this repository.
- Ensure you have access to the
doctors.txtfile and the text files containing doctor schedules. - Compile the source code using a C++ compiler.
- Run the executable file generated.