Advertisement
delvinkrasniqi

Untitled

Apr 18th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. class Student
  6. {
  7. private : int Pesha;
  8. string Emri;
  9. public:
  10. string Mbiemri;
  11.  
  12. void CaktoEmrin(string e)
  13.  
  14. {
  15. Emri=e;
  16. }
  17.  
  18. void CaktoPeshen(int p)
  19. {
  20. Pesha =p;
  21. }
  22.  
  23. void TregoDetajet()
  24. {
  25. cout << "Emri ;" <<Emri<<endl;
  26. cout <<"Mbiemri: " << Mbiemri<<endl;
  27. cout <<"Pesha: " << Pesha<<endl;
  28.  
  29. }
  30. };
  31.  
  32. int main()
  33. {
  34. Student alfa;
  35. alfa.CaktoEmrin("Delvin");
  36. alfa.Mbiemri="Krasniqi";
  37. alfa.CaktoPeshen(80);
  38. alfa.TregoDetajet();
  39.  
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement