Dapxuongbuicaygio

 avatar
user_1746670
c_cpp
2 months ago
1.1 kB
2
Indexable
Never
#include <bits/stdc++.h>
using namespace std;

typedef struct NhanVienVanPhong {
	char hoTen[200];
	int namSinh;
	int soNgayLamViec;

	float luongHT; //luong hang thang
} VP;

typedef struct NhanVienSanXuat {
	string hoTen;
	int namSinh;
	float luongCanBan;
	int soSanPham;

	float luongHT; //luong hang thang
} SX;

typedef struct CongTy {
	VP dsVP[200];
	int soVP; 

	vector<SX> dsSX; 
} CT;

//1. Nhap, tao nhan vien
void khoiTao(CT &ct) {

}

//2. Xuat, in danh sach nhan vien
void printf(CT ct) {

}

/*
3. Tinh tong luong phai tra cho nhan vien 
Input: 
	+ CongTy ct
Output:
	+ Tong luong => return int
*/
float tongLuongHT_ALL(CongTy ct) {

}

/*
4. Tim cac nhan vien co tien luong lon nhat
Input:
	+ CongTy ct;
Output:
	+ Mang cac nhan vien
*/


int main() {
	CongTy ct;

	//test 1: Nhap, khoi tao nhan vien
	khoiTao(ct);

	//test 2: Xuat, in ds
	printf(ct);

	//test 3: Tinh tong luong phai tra cho nhan vien 


	//test 4: Tim cac nhan vien co tien luong lon nhat

	return 0;
}
Leave a Comment