Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <string>
#include <vector>
#include <iomanip>
using namespace std;
class Nguoi {
protected:
string hoten;
int namsinh;
#include <iostream>
#include <iomanip>
using namespace std;
class Array1D {
protected:
int n;
int *a;
public:
Array1D() {
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
class NhanSu {
protected:
string maNV, hoTen, gioiTinh;
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
class MonHoc {
protected:
string tenMon;
float CC, KT, DT; // chuyên cần, kiểm tra, thi
public:
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
class Nguoi {
protected:
string hoten;
int namsinh;
string gioitinh;
#include <iostream>
#include <iomanip>
using namespace std;
class Array1D {
protected:
int n;
int *a;
public:
Array1D() {
#include <iostream>
#include <iomanip>
using namespace std;
class Time {
private:
int h, m, s;
public:
Time() : h(0), m(0), s(0) {}
#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
using namespace std;
class Thisinh {
private:
string maTS;
string hoten;
```cpp
#include <iostream>
#include <iomanip>
using namespace std;
class MaTran {
protected:
int m, n;
int **a;
public:
#include <iostream>
#include <vector>
using namespace std;
class DaThuc {
protected:
int bac;
vector<double> heso; // lưu hệ số từ bậc 0 -> bậc n
public:
DaThuc() : bac(0), heso(1,0) {}