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

做网站用php还是pythonseo代码优化包括哪些

做网站用php还是python,seo代码优化包括哪些,建网站需要多少费用,wordpress一栏一个主题🌈个人主页:羽晨同学 💫个人格言:“成为自己未来的主人~” 队列 队列的概念及结构 队列:只允许在一端进行插入数据操作,在另一端进行删除删除数据操作的特殊线性表,队列具有先进先出FIFO,…

🌈个人主页:羽晨同学 

💫个人格言:“成为自己未来的主人~”  

队列

队列的概念及结构

队列:只允许在一端进行插入数据操作,在另一端进行删除删除数据操作的特殊线性表,队列具有先进先出FIFO,进行插入操作的一端称为队尾,进行删除操作的一端称为队头

队列的实现

队列也可以数组和链表的结构实现,使用链表的结构实现更优一点,因为如果使用数组的结构,出队列在数组头上出数据,效率会比较低

#pragma once
#include<stdio.h>
#include<stdbool.h>
#include<assert.h>typedef 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
#include"code.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
#include"code.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;
//}
#include"code.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.khdw.cn/news/31396.html

相关文章:

  • aspcms网站无法打开潍坊网站定制模板建站
  • 企业网络推广方案模板seo优化一般包括哪些内容()
  • 如何自己做留言板网站关键词排名怎么做上去
  • 怎样做网站的当前位置栏seo推广方案怎么做
  • java网站开发就业怎么样好的seo平台
  • 做受视频播放网站seo排名优化公司
  • 地方行业网站策划方案网站
  • 高清做 视频在线观看网站googleseo优化
  • 郑州网站建设公司怎么选在线网页制作系统搭建
  • 建网站费用 优帮云提高网站搜索排名
  • 墙绘网站建设域名注册管理机构
  • asp源码网站网络营销主要是什么
  • 游戏网站免费入口江苏关键词推广seo
  • asp做网站教程微信营销管理软件
  • 网站建设 客户评价友情链接检测平台
  • 网站建设教程视频中国纪检监察报
  • 建筑工程网络计划青岛百度seo
  • 移动应用开发是学什么seo分析及优化建议
  • 新疆建设学院校园网站企业微信scrm
  • 淮北招聘网最新招聘信息seo引擎优化怎么做
  • 北京网站建设的价格百度推广需要多少钱
  • 合肥专业做公司网站淘宝关键词排名
  • 网站申请名称和域名营销策划公司的经营范围
  • 专门做婚纱儿童摄影网站爱站工具包官网
  • 如何设计一个网页面板惠州短视频seo
  • 苏州新港建设集团有限公司网站在线优化网站
  • 我要自学网网站开发热狗网站排名优化外包
  • 温州网站建设专业的公司大数据查询
  • 网站热区图上海企业优化
  • 昆明php网站建设海外引流推广平台