3.25.c
来自「数据结构--C语言 数据结构源代码大全 用C语言编写」· C语言 代码 · 共 42 行
C
42 行
#include "stdio.h"
#include "conio.h"
#include "seqqueue2.h"
main()
{
char ch1,ch2;
SeqQueue Q;
int f;
InitQueue (&Q);
while(TRUE)
{
while(TRUE)
{
printf("A");
if(kbhit())
{
ch1=getch();
if(ch1==';'||ch1=='.')
break;
f= EnterQueue(&Q,ch1);
if(f==FALSE)
{
printf("full");
break;
}
}
}
while (!IsEmpty(&Q))
{
DeleteQueue(&Q,&ch2);
putchar(ch2);
}
getch();
if(ch1=='.') break;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?