Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MISC_H_INCLUDED
- #define MISC_H_INCLUDED
- #include <iostream>
- #include <fstream>
- #include <stdlib.h>
- #include <fstream>
- using namespace std;
- class wydzial
- {
- int wydzial_id ;
- string wydzial_name;
- public:
- void stworz_id_wydzialu(int i)
- {
- dept_id = i ;
- }
- void stworz_nazwe_wydzialu(string n)
- {
- nazwa_wydzialu = n ;
- }
- void show_informacje_wydzialu()
- {
- cout << "ID wydziału : " << wydzial_id<<endl;
- cout << "Nazwa wydziału : " << wydzial_name<< endl;
- }
- };
- class wykladowca:public wydzial
- {
- int id_wykladowcy ;
- string nazwisko_wykladowcy ;
- string kursy ;
- public:
- void stworz_id_wykladowcy(int i)
- {
- id_wykladowcy = i ;
- }
- void stworz_nazwisko_wykladowcy(string n)
- {
- nazwisko_wykladowcy = n ;
- }
- void stworz_kursy(string c)
- {
- kursy= c;
- }
- void show_informacje_wykladowcy()
- {
- show_informacje_wydzialu();
- cout << "ID wykladowcy : " << id_wykladowcy << endl;
- cout << "Teacher Name : " << nazwisko_wykladowcy << endl;
- cout << "Courses : " << courses <<endl;
- }
- };
- class student:public wykladowca
- {
- int student_id ;
- string nazwisko_studenta;
- public:
- void stworz_id_studenta(int i)
- {
- id_studenta = i;
- }
- void stworz_nazwisko_studenta(string n)
- {
- nazwisko_studenta = n;
- }
- void show_informacje_studenta()
- {
- show_dept_information();
- show_teacher_information();
- cout << "Student ID : " << student_id << endl;
- cout << "Student Name : " << student_name << endl;
- }
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement