Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ Hospital Management System

πŸ“Œ Project Overview

This is a console-based Hospital Management System developed using C++, demonstrating all major Object-Oriented Programming (OOPs) principles. The system simulates hospital workflows such as booking appointments, managing users, and storing patient records.


🎯 Roles Supported:

βœ… Admin (Manage records)
βœ… Doctor (Diagnose patients)
βœ… Patient (Book appointments)


πŸ”§ Key Features:

  • Role-Based Access Control
  • File-Based Data Storage
  • Appointment Booking System
  • Medical History Tracking
  • Diagnosis Management
  • Viewing and Storing Medical Records

🧠 C++ OOP Concepts Used

Concept Implementation Example
Inheritance Doctor and Patient inherit from Person
Polymorphism Virtual displayInfo() function
Encapsulation Private data members with public getters
File Handling Store medical records and appointments
Friend Class Admin accessing patient/doctor data

πŸ“ Project Structure

Hospital-Management/
β”œβ”€β”€ include/             # Header files
β”‚   β”œβ”€β”€ Person.h         # Base class
β”‚   β”œβ”€β”€ Admin.h          # Admin operations
β”‚   β”œβ”€β”€ Doctor.h         # Doctor functions
β”‚   └── Patient.h        # Patient functions
β”œβ”€β”€ src/                 # Implementation
β”‚   β”œβ”€β”€ Person.cpp
β”‚   β”œβ”€β”€ Admin.cpp
β”‚   β”œβ”€β”€ Doctor.cpp
β”‚   β”œβ”€β”€ Patient.cpp
β”‚   └── main.cpp         # Entry point

βš™οΈ How to Compile and Run

πŸ’» Windows PowerShell or CMD:

# Compile
g++ -Iinclude src/*.cpp -o hospital.exe

# Run
hospital.exe

Linux/macOS

# Compile
g++ -Iinclude src/*.cpp -o hospital

# Run
./hospital

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages