diff --git a/3 栈和队列/queue.cpp b/3 栈和队列/queue.cpp new file mode 100644 index 0000000..3d32b74 --- /dev/null +++ b/3 栈和队列/queue.cpp @@ -0,0 +1,17 @@ +#include +using namespace std; +#define MAXSIZE 100 + +struct Queue { + ElemType data[MAXSIZE]; + int front, rear; +} Q; + +void InitQueue(Queue &Q) { + Q.front = 0; + Q.rear = 0; +} + +int main() { + return 0; +} \ No newline at end of file diff --git a/3 栈和队列/3.cpp b/3 栈和队列/stack.cpp similarity index 100% rename from 3 栈和队列/3.cpp rename to 3 栈和队列/stack.cpp