Guest User

Untitled

a guest
May 19th, 2019
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Vektor3d{
  6. int x;
  7. int y;
  8. int z;
  9. mutable int brojacIspisa;
  10.  
  11. public:
  12. Vektor3d(const Vektor3d& v){
  13. x = v.DajX();
  14. y = v.DajY();
  15. z = v.DajY();
  16. brojacIspisa = 0;
  17. }
  18.  
  19. Vektor3d(){
  20. x = y = z = 0;
  21. brojacIspisa = 0;
  22. }
  23.  
  24. Vektor3d(int a, int b, int c){
  25. x = a;
  26. y = b;
  27. z = c;
  28. brojacIspisa = 0;
  29. }
  30. //u svakom konst postavit na 0
  31. //u ispisi se povecava
  32. //u postavi ne treba vise brojac = 0;
  33. };
  34.  
  35. int main()
  36. {
  37. cout << "Hello world!" << endl;
  38. return 0;
  39. }
RAW Paste Data