1
1
mirror of https://github.com/ParkMoonJ/KaoYan.git synced 2026-06-16 23:26:27 +08:00

Create queue.cpp

This commit is contained in:
ParkMoonJ
2021-04-09 13:49:14 +08:00
parent 631578b450
commit d07f3aeba4
2 changed files with 17 additions and 0 deletions

17
3 栈和队列/queue.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include <iostream>
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;
}