#include<stdio.h>
#include<conio.H>
#include<iostream.h>
#include<fstream.h>
#include<string.h>
/*never give up*/
class SachMuon;
class Sach;
class Nguoi;
class SinhVien;
/*111111111111111111111111111111111111111111111111111111111111111111*/
class Sach{
private:
char masach[5];
char tensach[30];
char tacgia[30];
public:
Sach(){
strcpy(masach,"");
strcpy(tensach,"");
strcpy(tacgia,"");
}
void setMaSach(char ma_in[]){
strcpy(masach, ma_in);
}
void setTenSach(char tensach_in[]){
strcpy(tensach, tensach_in);
}
void setTachGia(char tacgia_in[]){
strcpy(tacgia, tacgia_in);
}
char * getMaSach(){
return masach;
}
char * getTenSach(){
return tensach;
}
char * getTacGia(){
return tacgia;
}
void nhap(){
cout<<"
ma sach:";
gets(masach);
cout<<"
ten sach:";
gets(tensach);
cout<<"
tac gia :";
gets(tacgia);
}
void xuat(){
printf("
|%5s|%30s|%30s|",masach, tensach, tacgia);
}
};
class DanhSachSach{
private:
int n;
Sach sh[100];
public:
DanhSachSach(){
n = 0;
}
int kiemTra(int n_in, char ma_in[] ){
int i;