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

一个公司如何做多个网站备案北京百度推广代运营

一个公司如何做多个网站备案,北京百度推广代运营,网站几个数据库,网络工程的定义栈-Stack 1. 介绍2. 栈的实现2.1 基于链表的实现2.2 基于数组的实现 3. 栈操作CreateInitilizateDestoryPushPopTopEmptySize 1. 介绍 栈(stack) 是一种遵循先入后出逻辑的线性数据结构。顶部称为“栈顶”,底部称为“栈底”。把元素添加到栈…

栈-Stack

  • 1. 介绍
  • 2. 栈的实现
    • 2.1 基于链表的实现
    • 2.2 基于数组的实现
  • 3. 栈操作
    • Create
    • Initilizate
    • Destory
    • Push
    • Pop
    • Top
    • Empty
    • Size

1. 介绍

栈(stack) 是一种遵循先入后出逻辑的线性数据结构。顶部称为“栈顶”,底部称为“栈底”。把元素添加到栈顶的操作叫作“入栈”,删除栈顶元素的操作叫作“出栈”。
请添加图片描述

2. 栈的实现

2.1 基于链表的实现

请添加图片描述请添加图片描述请添加图片描述

2.2 基于数组的实现

请添加图片描述请添加图片描述
请添加图片描述

3. 栈操作

Create

typedef int STDataType;
typedef struct Stack
{STDataType* a;int top;int capacity;
}ST;

Initilizate

void STInit(ST* pst) {assert(pst);pst->a = NULL;//pst->top = -1;// top Points to the top of the stackpst->top = 0;// top Points to the next data on the top of the stackpst->capacity = 0;
}

Destory

void STDestory(ST* pst) {assert(pst);free(pst->a);pst->top = pst->capacity = 0;
}

Push

void STPush(ST* pst, STDataType x) {// Enpend capacityif (pst->top == pst->capacity) {int newCapacity = pst->capacity == 0 ? 4 : pst->capacity * 2;// If memblock is NULL, realloc behaves the same way as malloc and allocates a new block of size bytes. STDataType* tmp = (STDataType*)realloc(pst->a, newCapacity * sizeof(STDataType));if (tmp == NULL) {perror("relloc fail");return;}pst->a = tmp;pst->capacity = newCapacity;}pst->a[pst->top] = x;pst->top++;
}

Pop

void STPop(ST* pst) {assert(pst);assert(!STEmpty(pst));pst->top--;
}

Top

STDataType STTop(ST* pst) {assert(pst);assert(!STEmpty(pst));// top Points to the next data on the top of the stackreturn pst->a[pst->top - 1];
}

Empty

bool STEmpty(ST* pst) {assert(pst);return pst->top == 0;
}

Size

int STSize(ST* pst) {assert(pst);return pst->top;
}
http://www.dtcms.com/wzjs/466990.html

相关文章:

  • 什么做网站的公司好seo网站监测
  • 网站安全认证多少钱seo推广知识
  • 做自己的网站难不难网站优化检测
  • 如何做网站网页旁边的留言框外贸网站谷歌seo
  • 学校营销型网站建设网络营销的核心
  • 合肥企业网站建设公司哪家好淘宝客怎么做推广
  • 如何建立一个网站来卖东西中文网站排行榜
  • 网站建设 python山东网页定制
  • wordpress如何套模板建站各大引擎搜索入口
  • 做网站建设怎么跑客户百度竞价排名查询
  • 黑客网站装b全国疫情最新情况公布
  • 企业门户网站建设 北京市场调研分析报告模板
  • 秦皇岛网站制作报价在线培训系统平台
  • 网站开发工程师岗位说明书关键词挖掘机爱站网
  • html5网站单页模板疫情放开最新消息今天
  • 营销型科技网站建设百度客服人工电话24
  • 网站建设地图素材网店运营在哪里学比较好些
  • 从零开始做网站内容运营营销策略的重要性
  • 哈尔滨电子网站建设巩义关键词优化推广
  • 网站页面如何架构吸引人的微信软文
  • 中英文网站建站哪个网站是免费的
  • 做网站没有成本的方法免费网站安全检测
  • wordpress自定义链接不能用北京seo顾问推推蛙
  • 网站3级目录可以做导航分类么石家庄百度快速排名优化
  • 免费的手机网站模板seo视频教程
  • 吐鲁番app开发定制德州seo优化
  • 网站管理是什么工作宁波优化关键词首页排名
  • saas系统是干嘛的优化软件
  • 深圳网站设计与制作推广软文营销案例
  • 上海建站shwzzz世界新闻