Skip to content

Employee Management System (C++ + SQLite) A simple console-based employee management system implemented in C++ with SQLite. It allows you to add, view, update, delete, and delete all employees in a local database. Perfect for learning C++ database integration and CRUD operations using SQLite.

Notifications You must be signed in to change notification settings

ABH1516/EmployeeManagementSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Management System (C++ + SQLite)

A simple console-based Employee Management System built with C++ and SQLite.
The system allows you to add, view, update, delete, and delete all employees from a SQLite database.


Features

  • Add a new employee (Name + Age)
  • View all employees
  • Update employee details
  • Delete an employee
  • Delete all employees

Prerequisites

  • C++ compiler (g++, MinGW, or similar)
  • SQLite3 library

Project Structure

EmployeeProject/ │ ├── include/ │ ├── db.h │ └── employee.h │ ├── src/ │ ├── main.cpp │ ├── db.cpp │ └── employee.cpp │ ├── employee.db # SQLite database (auto-generated) ├── README.md └── .gitignore

How to Compile and Run

  1. Compile the project (example with g++):

g++ -I "A:/Code/Projects/EmployeeProject/include" -I "A:/Code/Projects/EmployeeProject" -c src/main.cpp -o main.o g++ -I "A:/Code/Projects/EmployeeProject/include" -I "A:/Code/Projects/EmployeeProject" -c src/employee.cpp -o employee.o g++ -I "A:/Code/Projects/EmployeeProject/include" -I "A:/Code/Projects/EmployeeProject" -c src/db.cpp -o db.o

g++ main.o employee.o db.o sqlite3.o -o emp.exe

.\emp.exe

$Usage

The console menu allows you to:

1.Add Employee 2.View Employees 3.Update Employee 4.Delete Employee 5.Delete All Employees 6.Exit

Follow the prompts to perform actions.

$Notes

1.Database employee.db is created automatically in the project root. 2.Employee IDs are auto-incremented by SQLite.

About

Employee Management System (C++ + SQLite) A simple console-based employee management system implemented in C++ with SQLite. It allows you to add, view, update, delete, and delete all employees in a local database. Perfect for learning C++ database integration and CRUD operations using SQLite.

Resources

Stars

Watchers

Forks

Packages

No packages published