Files
school/semester_2/programiranje_2/primeri/Example01b/Stack01b.cpp

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;
}