C语言队列操作示例:实现字符入队、出队及打印
void main( ) { Queue Q; InitQueue(Q); Char x='e'; y='c'; EnQueue(Q,'h'); EnQueue(Q,'r'); EnQueue(Q,'y'); DeQueue(Q,x); EnQueue(Q,x); DeQueue(Q,x); EnQueue(Q,'a'); while(!QueueEmpty(Q)){ DeQueue(Q,y);printf('%c',y); }; Printf('%c',x); }
运行结果内容:hryaec
原文地址: https://www.cveoy.top/t/topic/n0Ws 著作权归作者所有。请勿转载和采集!