#include #include #include using namespace std; struct DATE { int ng,th,nam; }; class PHIEU { protected: char sp[10]; DATE nl; float tkn,tkc; public: void Nhap() { fflush(stdin); cout<<"Nhap so phieu: ";cin.getline(sp,10); cout<<"Nhap ngay lap: ";cin>>nl.ng>>nl.th>>nl.nam; cout<<"Nhap tai khoan no: ";cin>>tkn; cout<<"Nhap tai khoan co: ";cin>>tkc; } void Xuat() { cout<9)cout<9)cout<>st; } void Xuat() { PHIEU::Xuat(); cout<>st; } void Xuat() { PHIEU::Xuat(); cout<(PHIEUXUAT &a, const float b) { return(a.st>b); } friend bool operator==(PHIEUXUAT &a, char kho[50]) { return(strcmpi(a.xtk,kho)==0); } }; int main() { PHIEUTHU *a; PHIEUXUAT *b; int i,n1,n2; float tongtien=0; cout<<"Nhap so luong phieu xuat: ";cin>>n1; a=new PHIEUTHU[n1]; cout<<"\n\n\tNHAP THONG TIN PHIEU THU"; cout<<"\n------------------------------------------\n"; for(i=0;i>n2; b=new PHIEUXUAT[n2]; cout<<"\n\n\tNHAP THONG TIN PHIEU XUAT"; cout<<"\n------------------------------------------\n"; for(i=0;i5000000 && b[i]=="KHO03") { b[i].Xuat(); cout<