Created
October 11, 2019 03:20
-
-
Save easleyschool/91e3eff98b57c322d7b6c6ba7d566b18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Stack :: pop() | |
{ | |
// if empty | |
if(front == NULL) | |
{ | |
printf( "UNDERFLOW\n" ); | |
} | |
// delete the first element | |
else | |
{ | |
node *temp = front; | |
front = front->next; | |
delete(temp); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment