-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
30 lines (24 loc) · 820 Bytes
/
Copy pathmain.cpp
File metadata and controls
30 lines (24 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <iostream>
#include "AdministrativeStaff.h"
using namespace std;
int main() {
AdministrativeStaff nvhc[3];
// Nhập thông tin cho từng nhân viên (có thể nhập trực tiếp hoặc dùng hàm input nếu có)
nvhc[0].setId(1);
nvhc[0].setLastName("Nguyen Anh");
nvhc[0].setFirstName("Tuan");
// ... nhập các trường khác nếu muốn
nvhc[1].setId(2);
nvhc[1].setLastName("Huynh Tan");
nvhc[1].setFirstName("Phat");
// ... nhập các trường khác nếu muốn
nvhc[2].setId(3);
nvhc[2].setLastName("Tran Nhat");
nvhc[2].setFirstName("Nam");
// ... nhập các trường khác nếu muốn
// In thông tin của ba đối tượng ra màn hình
for (int i = 0; i < 3; ++i) {
nvhc[i].print();
}
return 0;
}