#include "..\CookHeader.h"

Array <string> queue = { "화사", "솔라", "문별", "None", "None" };
int front = -1, rear = 2;

int main() {
	println("-------큐 상태-------");
	print("[출구] <-- ");
	for (int i = 0; i < len(queue); i++)
		print(queue[i]);
	println("<-- [입구]");
	println("---------------------");

	string data;

	front++;
	data = queue[front];
	queue[front] = "None";
	println("deQueue-->" + data);

	front++;
	data = queue[front];
	queue[front] = "None";
	println("deQueue-->" + data);

	front++;
	data = queue[front];
	queue[front] = "None";
	println("deQueue-->" + data);
	println("---------------------");

	println("-------큐 상태-------");
	print("[출구] <-- ");
	for (int i = 0; i < len(queue); i++)
		print(queue[i]);
	println("<-- [입구]");
}