#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#include<string.h>#include<stdlib.h>#include"SeqQueue.h"typedefstruct PERSON {char name[64];int age;}Person;intmain(){//创建队列
SeqQueue* queue =Init_SeqQueue();//创建元素
Person p1 ={"Tom",18};
Person p2 ={"Bob",14};
Person p3 ={"Judy",12};
Person p4 ={"Leo",43};
Person p5 ={"Hugo",12};//插入元素Push_SeqQueue(queue,&p1);Push_SeqQueue(queue,&p2);Push_SeqQueue(queue,&p3);Push_SeqQueue(queue,&p4);Push_SeqQueue(queue,&p5);//输出元素while(Size_SeqQueue(queue)>0){//获取队列顶部元素
Person* p =(Person*)Front_SeqQueue(queue);printf("Name:%-8s,Age:%-8d\n", p->name, p->age);//删除队列顶部元素Pop_SeqQueue(queue);}FreeSpace_SeqQueue(queue);system("pause");return0;}