SHARE
TWEET

majn

a guest Oct 14th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     float tab1[] = { 1, 2, 3, 4, 5 };
  2.     float tab2[] = { 6, 7, 8, 9, 0 };
  3.  
  4.     // statycznie
  5.     Punkt t1(3, 2);
  6.     t1.drukuj();
  7.     Punkt t2(5, 6);
  8.     t1.dodaj(t2);
  9.     t1.drukuj();
  10.  
  11.     //dynamicznie
  12.     Punkt* ptr = new Punkt(6,7);
  13.     Punkt* ptr2 = new Punkt(-5, 3.9);
  14.     ptr->drukuj();
  15.     ptr2->dodaj(ptr);
  16.     ptr2->drukuj();
  17.  
  18.     //Tablica
  19.     Tablica tab(3);
  20.     tab.drukuj();
  21.     Tablica tab3(tab1, tab2, 5);
  22.     tab3.drukuj();
  23.     Tablica tab4(tab2, tab1, 5);
  24.     tab4.dodaj(tab3);
  25.     tab4.drukuj();
  26.     Tablica tab5(tab4);
  27.     tab5.drukuj();
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