daily pastebin goal
35%
SHARE
TWEET

dd

a guest Aug 10th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Helikopter
  2. {
  3. private:
  4. int regBroj;
  5. int maksBrz;
  6. int brojSjedista;
  7. public:
  8. void unos();
  9. void ispis();
  10. Helikopter(int a, int b, int c);
  11. };
  12.  
  13. Helikopter::Helikopter(int a, int b, int c)
  14. {
  15. a=regBroj;
  16. b=maksBrz;
  17. c=brojSjedista;
  18. }
  19.  
  20. Helikopter::unos();
  21. {
  22. cout << "Unesi registarski broj helikoptera: "
  23. cin >>a;
  24. cout << "Unesi maksimalnu brzinu helikoptera: "
  25. cin >>b;
  26. cout << "Unesi broj sjedista helikoptera: "
  27. cin >>c;
  28. }
  29.  
  30. Helikopter::ispis();
  31. {
  32. cout << "Registarski broj za helikopter je: " <<a <<endl;
  33. cout << "Moze ici maksimalnom brzinom: " <<b <<endl;
  34. cout << "Broj sjedista helikoptera jeste: " <<c <<endl;
  35. }
  36.  
  37. int main():
  38. {
  39. Helikopter h;
  40. h.unos();
  41. h.ispis();
  42.  
  43.  
  44. return 0;
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top