Guest User

Untitled

a guest
May 16th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pic 16 0.78 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class DruhStudenta{
  6. public:
  7.  
  8.  
  9.  
  10. };
  11.  
  12. class Student{
  13. protected:
  14.     string m_jmeno;
  15.     float m_prospech;
  16.     DruhStudenta* m_aktualniDruh;
  17.  
  18. public:
  19.     Student(string jmeno, float prospech){
  20.         m_jmeno=jmeno;
  21.         m_prospech=prospech;
  22.         m_aktualniDruh=new BeznyStudent(jmeno,prospech);
  23.     };
  24.     virtual float vratProspechoveStipendium() = 0;
  25. };
  26.  
  27.  
  28. class BeznyStudent:public DruhStudenta{
  29. public:
  30.     BeznyStudent(string jmeno, float prospech){
  31.         m_jmeno=jmeno;
  32.         m_prospech=prospech;
  33.  
  34.     }
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. };
  43.  
  44. class ProdlouzenyStudent:public DruhStudenta{
  45. private:
  46.     int m_dobaProdlouzeni;
  47.  
  48. public:
  49.  
  50.  
  51.  
  52.  
  53.  
  54. };
  55.  
  56.  
  57.  
  58.  
  59.  
  60. int main()
  61. {
  62.     cout << "Hello world!" << endl;
  63.     return 0;
  64. }
Add Comment
Please, Sign In to add comment