rootuss

wskazniki 1

Dec 8th, 2017
166
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int ile;
  6.  
  7. int main()
  8. {
  9.     cout<<"Ile liczb w tablicy: ";
  10.     cin>>ile;
  11.  
  12.     int *tablica;
  13.     tablica = new int [ile];
  14.  
  15.     for(int i=0;i<ile;i++)
  16.     {
  17.         cout<<(int)tablica<<endl;
  18.         tablica++;
  19.     }
  20.  
  21.     delete [] tablica; //zwolnienie pamieci
  22.     return 0;
  23. }
RAW Paste Data