Guest User

Untitled

a guest
May 26th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. void stack::Pop()
  2. {
  3. if(size!=0)
  4. {
  5. --size;
  6. tab=(int*)realloc(tab, size*sizeof(int));
  7. }else
  8. {
  9. cout<<"Stos jest pusty, nie mozna usunac elementow!"<<endl;
  10. }
  11. }
  12.  
  13. ----------------------------------------------------------------------
  14.  
  15. if(size!=0)--size;
  16. tab=(int*)realloc(tab, size*sizeof(int));
  17. 23:29:27
  18. if(size!=0)
  19. {
  20. --size;
  21. tab=(int*)realloc(tab, size*sizeof(int));
  22. }
Add Comment
Please, Sign In to add comment