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.
- Add a new employee (Name + Age)
- View all employees
- Update employee details
- Delete an employee
- Delete all employees
- C++ compiler (g++, MinGW, or similar)
- SQLite3 library
EmployeeProject/ │ ├── include/ │ ├── db.h │ └── employee.h │ ├── src/ │ ├── main.cpp │ ├── db.cpp │ └── employee.cpp │ ├── employee.db # SQLite database (auto-generated) ├── README.md └── .gitignore
- 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.