-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sinhvien.h
36 lines (33 loc) · 841 Bytes
/
Sinhvien.h
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
31
32
33
34
35
36
//
// Created by Vo Ba Hoang Nhat on 16/03/2023.
//
#ifndef TH_BAI3_SINHVIEN_H
#define TH_BAI3_SINHVIEN_H
#include <fstream>
#include <iostream>
#include<string>
#include <ctime>
using namespace std;
class Sinhvien {
private:
char* _hoten;
char*_maso;
char*_ngaysinh;
float _diem[3];
public:
Sinhvien();
void KhoiTao(int nten, int nma, int nngay);
Sinhvien(char *hoten,char*maso,char*ngaysinh,float diem[]);
Sinhvien(const Sinhvien &other);
~Sinhvien();
Sinhvien Saochep(const Sinhvien& other);
Sinhvien& operator=(const Sinhvien &other);
void Nhap_Sinh_Vien(ifstream &fin);
void Xuat();
void XuatFile(ofstream &fout);
float Diem_Trung_Binh();
string Xep_Loai();
bool laSinhNhat();
friend istream& operator>> (istream& in, Sinhvien& src);
};
#endif //TH_BAI3_SINHVIEN_H