A C++ & MySQL-based Employee Payroll Management System designed to simplify employee salary management, track loans, allowances, and automate payroll calculations efficiently.
-
Add / Insert Employee Records Add new employees with complete details such as name, code, designation, experience, age, and working hours.
-
Automatic Salary Computation Calculates salary components including:
- Basic Salary
- DA (Dearness Allowance)
- HRA (House Rent Allowance)
- PF (Provident Fund)
- Tax
- Meal, Medical, Transport Allowances
- Loan deduction if applicable
-
Update Employee Records Modify existing employee data and automatically update salary computations.
-
Save to Database Integrates with MySQL to persist employee records using
INSERTandON DUPLICATE KEY UPDATE. -
Input Validation Ensures clean and valid employee data entry.
-
Interactive Console UI Simple and user-friendly interface using console positioning functions (
gotoXY) and menus.
- C++ β Core language for console application logic
- MySQL β Database for storing employee records
- Dev-C++ β Development environment
- SQL Queries β For CRUD operations on employee database
- Clone the repository:
git clone https://github.com/your-username/employee-payroll-system.git-
Open in Dev-C++ or your preferred IDE.
-
Make sure MySQL Server is installed and running.
-
Update database connection parameters in your code:
// Example
db.connect("localhost", "root", "password", "payrolldb");- Compile and run the project.
-
Run the executable
employee payroll.exe. -
Use menu options to:
- Insert new employee records
- Update or edit records
- Save all records to the database
- View employee salary details
- GUI-based interface for better user experience
- Export payroll reports to Excel/PDF
- Support for multiple currencies and tax brackets
- Role-based access control for admin and HR staff






