15 lines
		
	
	
		
			161 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			161 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
 | |
| #include "Stack01b.h"
 | |
| 
 | |
| void push(int n) {
 | |
|     arr[++top] = n;
 | |
| }
 | |
| 
 | |
| int pop() {
 | |
|     return arr[top--];
 | |
| }
 | |
| 
 | |
| int isEmpty() {
 | |
|     return top == EMPTY;
 | |
| }
 |