Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. struct subject
  8.     {
  9.         string s_name;
  10.     };
  11.  
  12.  
  13. class human
  14.     {
  15.         protected:
  16.         string t_name;
  17.         string t_surname;
  18.         string t_patronymic;
  19.         string sex;
  20.         int age;
  21.     };
  22.  
  23. class student:public human
  24.     {
  25.         public:
  26.             student(string *,string *,string *,string *, int, int, string, subject);
  27.             //student();
  28.             ~student(void);
  29.             void show_stud()
  30.                 {
  31.                     cout<<t_name<<endl;
  32.  
  33.                 };
  34.         protected:
  35.             int n_kurs;
  36.             string numb_grup;
  37.             subject stud_subj[];
  38.     };
  39.  
  40. void main()
  41.     {
  42.        
  43.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement