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

html网站开发工具下载商务网站设计与制作

html网站开发工具下载,商务网站设计与制作,ps最好用的素材网站,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/432130/

相关文章:

  • 淘宝做店招的网站免费网站建设自助建站
  • 重庆工信部网站绵阳公司网站建设
  • 购物网站开发流程制作企业网页
  • 定州哪里可以做网站建设项目环境影响登记表备案系统网站
  • 网站建设费属于广告费小猪网站怎么做的
  • 国内优秀设计网站站长哈尔滨微网站建设
  • 如何建设一个优秀的电商网站沐风seo
  • 从零开始学网站建设知乎安防网站下载
  • 打开网站弹出qq应用软件有哪些
  • 温州网站建设seo网站 如何做 中英文切换
  • 聊城做网站的公司资讯信阳 网站建设
  • 天津市工程建设交易网站查汗国珠海 网页设计
  • 龙果学院大型网站稳定性建设汾阳做网站
  • 湖北 个人网站备案时间域名查询备案查询
  • 网站推广方式校园网站怎么建
  • 长沙seo网站排名怎么在百度发帖
  • 织梦贷款网站模板做印章网站
  • 彭州做网站上海百度网络推广
  • 广州网站搭建快速提升网站排名荧光字网站
  • 15年做那些网站能致富做seo是什么意思
  • 各电商网站的特点网站制作2007
  • 用html做一号店网站怎么做公众号注册平台官网
  • 做盈利网站怎么备案vs做网站如何调试
  • 嘉兴做营销型网站廊坊做网站外包
  • 双语网站模板常州做网站的公司
  • 广州市车管所网站建设全国做网站公司前十名
  • 太原手手工网站建设公司视频直播服务
  • 雷达图 做图网站wordpress首页怎么美化
  • 四川做网站设计公司价格vip解析网站怎么做的
  • 网站建设流程域名申请做化工的 有那些网站