#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;
}
标签:head,struct,int,每日,queue,tail,打卡
From: https://www.cnblogs.com/gyg1222/p/17335052.html