Advertisement
Garusek

postep ep01

May 13th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #include <cstdio>
  2. #include <iostream>
  3. using namespace std;
  4. #include <string>
  5.  
  6.  
  7. class student
  8. {
  9. protected:
  10. string imie;
  11. string nazwisko;
  12. string kierunek;
  13. string sindeks;
  14. public:
  15. student(){}
  16. student(string i, string n, string k, string s){}
  17. void dodaj_studenta()
  18. {
  19. cout<<"Podaj imie studenta\n";
  20. cout<<"Podaj nazwisko studenta ";
  21. cin>>imie;
  22. cin>>nazwisko;
  23. cout<<"Podaj kierunek na ktory uczeszcza student"
  24. cin>>kierunek
  25.  
  26.  
  27. }
  28.  
  29.  
  30. };
  31.  
  32.  
  33.  
  34.  
  35. class kursy : public student
  36. {
  37. string ocena;
  38. string frekwencja;
  39. public:
  40. kursy(string i, string n, string k, string s, string o, string f)
  41. {
  42. imie = i;
  43. nazwisko = n;
  44. kierunek = k;
  45. sindeks = s;
  46. ocena = o;
  47. frekwencja = f;
  48. }
  49.  
  50.  
  51.  
  52.  
  53. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement