2018-05-28

作者: zhouxu123 | 来源:发表于2018-05-28 15:15 被阅读0次

1.栈 

后进先出

入栈int top=-1;         出栈char c=data[top];

            top++;            top--;

           data[top]=’A’;

2.队列

rear队尾;

rear++;

rear=(rear+1)%MAX 实现循环;入队条件;

front==(rear+1)%MAX满队条件;

rear==front空队条件;

入rear动,出front动;

flag=1满了,=0空的;

del删除;

malloc(4)申请4个字节;

相关文章

网友评论

    本文标题:2018-05-28

    本文链接:https://www.haomeiwen.com/subject/phjgjftx.html