mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 11:26:29 +08:00
43 lines
462 B
C++
43 lines
462 B
C++
|
/**
|
||
|
* 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;
|
||
|
}
|