consolidate all repos to one for archive
This commit is contained in:
17
semester_2/programiranje_2/primeri/Example01a/Stack01a.h
Normal file
17
semester_2/programiranje_2/primeri/Example01a/Stack01a.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef EXAMPLE01A_STACK01A_H
|
||||
#define EXAMPLE01A_STACK01A_H
|
||||
|
||||
#define SIZE 50
|
||||
#define EMPTY (-1)
|
||||
|
||||
struct Stack {
|
||||
int arr[SIZE];
|
||||
int top;
|
||||
};
|
||||
|
||||
void init(Stack& s);
|
||||
void push(Stack& s, int n);
|
||||
int pop(Stack& s);
|
||||
int isEmpty(Stack& s);
|
||||
|
||||
#endif //EXAMPLE01A_STACK01A_H
|
||||
Reference in New Issue
Block a user