Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void stack::Pop()
- {
- if(size!=0)
- {
- --size;
- tab=(int*)realloc(tab, size*sizeof(int));
- }else
- {
- cout<<"Stos jest pusty, nie mozna usunac elementow!"<<endl;
- }
- }
- ----------------------------------------------------------------------
- if(size!=0)--size;
- tab=(int*)realloc(tab, size*sizeof(int));
- 23:29:27
- if(size!=0)
- {
- --size;
- tab=(int*)realloc(tab, size*sizeof(int));
- }
Add Comment
Please, Sign In to add comment