consolidate all repos to one for archive
This commit is contained in:
14
semester_2/programiranje_2/primeri/Example01b/Stack01b.cpp
Normal file
14
semester_2/programiranje_2/primeri/Example01b/Stack01b.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
#include "Stack01b.h"
|
||||
|
||||
void push(int n) {
|
||||
arr[++top] = n;
|
||||
}
|
||||
|
||||
int pop() {
|
||||
return arr[top--];
|
||||
}
|
||||
|
||||
int isEmpty() {
|
||||
return top == EMPTY;
|
||||
}
|
||||
Reference in New Issue
Block a user