img

#include<iostream>
using namespace std;
struct queue
{
	int data[100];
    int head;
    int tail;
};
int main()
{
	struct queue q;
	int i;
	q.head = 1;
	q.tail = 1;
	for (i = 1; i <= 9; i++)
	{
		cin >> q.data[q.tail];
		q.tail++;
	}
	while (q.head < q.tail)
	{
		cout << q.data[q.head];
		q.head++;

		q.data[q.tail] = q.data[q.head];
		q.tail;
		q.head++;
	}
	return 0;
}
posted on 2023-04-19 23:15  许七安gyg  阅读(131)  评论(0编辑  收藏  举报
$(document).ready(function() { // 禁止右键 $(document).bind("contextmenu", function(){return false;}); // 禁止选择 $(document).bind("selectstart", function(){return false;}); // 禁止Ctrl+C 和Ctrl+A $(document).keydown(function(event) { if ((event.ctrlKey&&event.which==67) || (event.ctrlKey&&event.which==86)) { //alert("对不起,版权所有,禁止复制"); return false; } }); });