You are on page 1of 5

Employees Management System

This program allow the user to add, delete, edit, search, list old employee and current
employee information's to the data base.
The program is very flexible in a comparison for other program, for instance it allow the user
to enter job number as "w1298" and the experience as "10" or "ten", because it is build of
strings which takes any value.
The program is strongly validated it dose not all the user to cross the borders like what
happen in an array[x], in addition it uses a class which keeps the main data private.

void main()

Main menu, repeat tell exit

void spaceto_(string&,int);

Change space to _
Display Choices and call takeChoice();

int showChoices();
int takeChoice();
void anotherEmployee(bool&, string&);

Validate choice
repeat
Write from obj To File

void WriteToFile(employees&,
ofstream&);
void Insert();
void search();

Add new employee


Search for employee
Gives choices Of Edit function

int choicesOfEdit();
int takeChoiceOfEdit();

Take Choice Of Edit function


editEmployee name

void editEmployee1(employees&, int);


editEmployee designation
void editEmployee2(employees&, int);
void editEmployee3(employees&, int);

editEmployee experience
editEmployee salary

void editEmployee4(employees&, int);


void Edit();
void Delete();
void ListCurEmployees();
void ListArcEmployees();

Main edit function


Delete employee and move to archive

List all the current employees


List all the archived
employees

You might also like