Professional Documents
Culture Documents
#include <fstream>
#include <string>
#include <vector>
struct NhanVien
int manhanvien;
string tennhanvien;
string gioitinh;
int ntnamsinh;
string tthonnhan;
int hesoluong;
int sdt;
string bophanlamviec;
int tuoi;
};
void Menuchinh()
}
void themnhanvien(vector<NhanVien>& NV) {
NhanVien NVien;
NV.push_back(NVien);
int manv;
if (NV[i].manhanvien == manv) {
timthay = true;
cout << "Nhap thong tin moi cho nhan vien: " << NV[i].tennhanvien << endl;
break;
if (!timthay) {
cout << "Khong Tim Thay Nhan Vien Can Cap Nhat.\n";
void MenuquanliNV()
vector<NhanVien> NV;
int luachon;
do
cin>>luachon;
switch (luachon) {
case 1:
themnhanvien(NV);
break;
case 2:
capnhat(NV);
break;
// case 3:
// xoanhanvien(NV);
// break;
// case 4:
// sapxep(NV);
// break;
// case 5:
// timkiem(NV);
// break;
case 6:
break;
default:
break;
vector<NhanVien> NVien;
int luachon;
do {
switch (luachon) {
case 1:
Menuchinh(NV);
break;
case 2:
themnhanvien(NV);
break;
case 3:
capnhatnhanvien(NV);
break;
case 4:
xoanhanvien(NV);
break;
case 5:
sapxep(NV);
break;
case 6:
timkiem(employees);
break;
case 7:
count_employee_by_department(employees);
break;
case 8:
filter_employee_by_gender(employees);
break;
case 9:
count_employee_by_age(employees);
break;
case 10:
break;
default:
break;
return 0;
return 0;