当前位置: 首页 > news >正文

在哪查询网站做的哪些外链wordpress英文站更新通知目录

在哪查询网站做的哪些外链,wordpress英文站更新通知目录,生活中的科技产品有哪些,食品电子商务网站建设方案#x1f308;个人主页#xff1a;羽晨同学 #x1f4ab;个人格言:“成为自己未来的主人~” 队列 队列的概念及结构 队列#xff1a;只允许在一端进行插入数据操作#xff0c;在另一端进行删除删除数据操作的特殊线性表#xff0c;队列具有先进先出FIFO#xff0c;… 个人主页羽晨同学  个人格言:“成为自己未来的主人~”   队列 队列的概念及结构 队列只允许在一端进行插入数据操作在另一端进行删除删除数据操作的特殊线性表队列具有先进先出FIFO进行插入操作的一端称为队尾进行删除操作的一端称为队头 队列的实现 队列也可以数组和链表的结构实现使用链表的结构实现更优一点因为如果使用数组的结构出队列在数组头上出数据效率会比较低 #pragma once #includestdio.h #includestdbool.h #includeassert.htypedef int QDataType; typedef struct QueueNode {int val;struct QueueNode* next; }QNode;typedef struct Queue {QNode* phead;QNode* ptail;int size; }Queue;void QueueInit(Queue* pq); void QueueDestroy(Queue* pq); //入队列 void QueuePush(Queue* pq, QDataType x); //出队列 void QueuePop(Queue* pq);QDataType QueueFront(Queue*pq); QDataType QueueBack(Queue* pq); bool QueueEmpth(Queue* pq); int QueueSize(Queue* pq);#define _CRT_SECURE_NO_WARNINGS #includecode.4.5.Queue.h void QueueInit(Queue* pq) {assert(pq);pq-phead NULL;pq-ptail NULL;pq-size 0; }void QueueDestroy(Queue* pq) {assert(pq);QNode* cur pq-phead;while (cur) {QNode* next cur-next;free(cur);cur next;}pq-phead pq-ptail NULL;pq-size 0; }//入队列 void QueuePush(Queue* pq, QDataType x) {assert(pq);QNode* newnode (QNode*)malloc(sizeof(QNode));if (newnode NULL) {perror(malloc fail);return;}newnode-val x;newnode-next NULL;if(pq-ptail){pq-ptail-next newnode;pq-ptail newnode;}pq-size; } void QueuePop(Queue* pq) {assert(pq);assert(pq-phead ! NULL);if (pq-phead-next NULL) {free(pq-phead);pq-phead pq-ptail NULL;}else{QNode* next pq-phead-next;free(pq-phead);pq-phead next;}pq-size--; }QDataType QueueFront(Queue* pq) {assert(pq);assert(pq-phead ! NULL);return pq-phead-val; } QDataType QueueBack(Queue* pq) {assert(pq);assert(pq-ptail ! NULL);return pq-ptail-val; } bool QueueEmpth(Queue* pq) {assert(pq);return pq-size 0; } int QueueSize(Queue* pq) {assert(pq);return pq-size; } #define _CRT_SECURE_NO_WARNINGS #includecode.4.5.stack.h //int main() { // ST s; // STInit(s); // STPush(s,1); // STPush(s,2); // STPush(s,3); // int top STTop(s); // printf(%d, top); // // STDestroy(s); // return 0; //} #includecode.4.5.Queue.h int main() {Queue q;QueueInit(q);QueuePush(q, 1);QueuePush(q, 2);printf(%d , QueueFront(q));QueuePop(q);QueuePush(q, 3);QueuePush(q, 4);while (!QueueEmpth(q)){printf(%d , QueueFront(q));QueuePop(q);}QueueDestroy(q);return 0; }
http://www.w-s-a.com/news/598268/

相关文章:

  • 青岛网站美工成都优秀网站建设
  • 聊城大型门户网站建设多版本wordpress
  • 建网站的公司 快云wordpress的搜索
  • 贷款网站模版东莞网站建设哪家专业
  • 做做网站已更新878网站正在建设中
  • dz旅游网站模板网站上做百度广告赚钱么
  • 青岛外贸假发网站建设seo优化名词解释
  • 四川建设厅网站施工员证查询网站建设行业政策
  • 网站全站出售dw怎么设计网页
  • 合肥网站建设方案服务网站建设推荐郑国华
  • 襄阳网站建设需要多少钱台州网站设计公司网站
  • 东莞专业拍摄做网站照片如何在百度上发布自己的广告
  • 网站建设费 科目做网站建设最好学什么
  • php商城网站建设多少钱深圳市建设
  • 有什么做糕点的视频网站黄岛做网站
  • 做视频课程网站建设一个普通网站需要多少钱
  • 专做化妆品的网站合肥做网站建设公司
  • 唐山企业网站网站建设费计入那个科目
  • 企业网站制作运营彩虹云主机官网
  • 如何建设废品网站如何在阿里云云服务器上搭建网站
  • 如何建立网站后台程序wordpress 后台管理
  • 山东外贸网站建设怎么样wordpress首页左图右文
  • 志丹网站建设wordpress 形式修改
  • 南通seo网站推广费用网站建设就业前景
  • 自适应网站做mip改造浏览器广告投放
  • 网站meta网页描述网站的推广费用
  • 偃师市住房和城乡建设局网站网站个人主页怎么做
  • 做网站要实名认证吗wordpress去掉仪表盘
  • 在哪做网站好Python建网站的步骤
  • 卢松松的网站办公室设计布局