DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
simplest code for stack implementation in c++
void push(int val) { if(top>=n-1) cout<<"Stack Overflow"<<endl; else { top++; stack[top]=val; } }
Source by www.tutorialspoint.com #
PREVIOUS
NEXT
Tagged:
#simplest
#code
#stack
#implementation
ADD COMMENT
Topic
COMMENT
Name
4+8 =
Submit