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

网站建设如何使图片翻转企业建设网站的重要性

网站建设如何使图片翻转,企业建设网站的重要性,辽宁住房和城乡建设网站,江西做企业网站的公司因为平常栈中push的数据不会太多#xff0c;为了节约空间#xff0c;所以可以在一个顺序表中使用两个栈 结构图: 在这里我会留一个空间用来判断栈是否满#xff01; #include iostream using namespace std; typedef int ElemType;class DoubleStack { private:El…因为平常栈中push的数据不会太多为了节约空间所以可以在一个顺序表中使用两个栈 结构图: 在这里我会留一个空间用来判断栈是否满 #include iostream using namespace std; typedef int ElemType;class DoubleStack { private:ElemType *top_1;ElemType *base_1;ElemType *top_2;ElemType *base_2;public:DoubleStack(int n 3){base_1 new ElemType[n];top_1 base_1;top_2 top_1 n - 1;base_2 top_2;}bool push_1(ElemType e){if (top_1 top_2){cout Stack_1 has fullen endl;return false;}*top_1 e;top_1;return true;}bool push_2(ElemType e){if (top_2 top_1){cout Stack_2 has fullen endl;return false;}*top_2 e;top_2--;return true;}bool pop_1(ElemType e){if (top_1 base_1){cout Stack_1 is empty endl;return false;}top_1--;e *top_1;return true;}bool pop_2(ElemType e){if (top_2 base_2){cout Stack_2 is empty endl;return false;}top_2;e *top_2;return true;}bool isEmpty_1(){if (top_1 base_1){return true;}return false;}bool isEmpty_2(){if (top_2 base_2){return true;}return false;}bool getTop_1(ElemType e){if (isEmpty_1()){cout Stack_1 is empty endl;return false;}e *(top_1 - 1);return true;}bool getTop_2(ElemType e){if (isEmpty_2()){cout Stack_2 is empty endl;return false;}e *(top_2 1);return true;}void printStack_1(){if (isEmpty_1()){cout Stack_1 is empty endl;return;}ElemType *p base_1;cout 底在前顶在后: endl;while (p ! top_1){cout *p ;p;}cout endl;}void printStack_2(){if (isEmpty_2()){cout Stack_2 is empty endl;return;}ElemType *p base_2;cout 底在前顶在后: endl;while (p ! top_2){cout *p ;p--;}cout endl;}};int main() {DoubleStack s(10);for (int i 0; i 7; i){s.push_1(i);}s.push_2(3);s.push_2(4);s.push_1(5);s.printStack_1();s.printStack_2();if (s.isEmpty_1()){cout yes endl;}else cout no endl;if (s.isEmpty_2()){cout yes endl;}else cout no endl;return 0; }
http://www.pierceye.com/news/504741/

相关文章:

  • 房产网站排名做情侣网站
  • 营销型网站建设推荐国内团购网站做的最好的是
  • 前端网站建设苏州高新区建设局网站管网
  • 中小企业网站建设中服务器的解决方案是网站建设推广总结
  • 东莞网站建设新闻资讯做赌场网站犯法么
  • wordpress怎么添加单页模版seo价格是多少
  • 网站域名有了_网站如何建设优书网首页
  • 宠物网站建设策划报告Wordpress is文章展示
  • 电子建设网站的目的阿里巴巴网站是用什么技术做的
  • 图形设计网站wordpress微信群多个二维码
  • 网站建设维护是干什么网站用户需求报告
  • 咸宁网站建设公司水网站模板
  • 移动网站开发教材seo网站排名优化价格
  • 重生做网站小说畅想网络网站建设推广
  • 找个做网站的 优帮云wordpress 判断自定义栏目
  • wordpress文章目录分页wordpress加速优化服务
  • 二级目录网站怎么做小程序开发成都公司
  • 网站标题名字和备案名字网站开发 质量管理
  • 网站与系统开发吉安网站建设收费
  • 湖北襄阳网站建设wordpress电商ar
  • 微做网站环保行业网站建设
  • 昭通做网站公司北京手机网站制作多少钱
  • 昆明企业建网站多少钱如何弄微信小程序
  • wordpress清理网站缓存做的比较简约的网站
  • 青岛高端网站制作中铁建设集团门户密码
  • 公司专业做网站做网站域名起什么作用
  • 推广型网站建设机构如何创建wordpress
  • 做网站交互demo工具在线设计自己的签名免费
  • 做百度推广会送网站吗网站建设和邮箱的关联
  • 假网站如何做济南天桥区网站建设