You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
462 B
43 lines
462 B
2 years ago
|
/**
|
||
|
* File: array_stack.c
|
||
|
* Created Time: 2022-01-12
|
||
|
* Author: Zero (glj0@outlook.com)
|
||
|
*/
|
||
|
|
||
|
#include "../include/include.h"
|
||
|
|
||
|
|
||
|
struct ArrayStack {
|
||
|
int *array;
|
||
|
size_t stkSize;
|
||
|
};
|
||
|
|
||
|
typedef struct ArrayStack ArrayStack;
|
||
|
|
||
|
void new(ArrayStack* stk) {
|
||
|
|
||
|
}
|
||
|
|
||
|
size_t size(ArrayStack* stk) {
|
||
|
|
||
|
}
|
||
|
|
||
|
bool empty(ArrayStack* stk) {
|
||
|
|
||
|
}
|
||
|
|
||
|
void push(ArrayStack* stk, int num) {
|
||
|
|
||
|
}
|
||
|
|
||
|
void pop(ArrayStack* stk) {
|
||
|
|
||
|
}
|
||
|
|
||
|
int top(ArrayStack* stk) {
|
||
|
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
return 0;
|
||
|
}
|