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:
17
3 栈和队列/queue.cpp
Normal file
17
3 栈和队列/queue.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user