Skip to content

Instantly share code, notes, and snippets.

@easleyschool
Created October 11, 2019 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easleyschool/91e3eff98b57c322d7b6c6ba7d566b18 to your computer and use it in GitHub Desktop.
Save easleyschool/91e3eff98b57c322d7b6c6ba7d566b18 to your computer and use it in GitHub Desktop.
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