#include #include #include typedef struct NHANVIEN{ char Ma[10]; char Ten[30]; int Luong; }NV; void nhap1(NV &ds) { fflush(stdin); printf("\n Ma:"); gets(ds.Ma); printf("\n Ten:"); gets(ds.Ten); printf("\n Luong:"); scanf("%d", &ds.Luong); printf("\n*************************\n"); } void nhapNhanVien(int &n, NV ds[]) { printf("\n nhap so luong:"); scanf("%d", &n); for(int i=0; ii; j--) if(strcmp(ds[j-1 ].Ma , ds[j].Ma)>0) swap(ds[j-1], ds[j]); } void interchangeSort(NV a[], int n) { for (int i=0; i0) swap (a[i],a[j]); } void selectionSort(NV a[],int n) { for(int i=0; i