鱼C论坛

 找回密码
 立即注册
分享 中缀表达式转换为后缀表达式
2014-2-14 16:29
#include iostream using namespace std; #define MAXBUFFER 100 #define STACK_INIT_SIZE 20 #define STACKINCREMENT 10 typedef double ElemType; struct sqStack { ElemType *base; ElemType *top; int stackSize; }; void StackInit(sqStack *s) { s-base=(Elem ...
个人分类: 数据结构和算法|191 次阅读|0 个评论
分享 小甲鱼视频-数据结构和算法-约瑟夫问题-代码保存
2013-12-21 14:33
//maincpp #include iostream #include "MemberFuncion.h" using namespace std; int main() { int Pnum; cout"输入约瑟夫问题的参与人数:"endl; cinPnum; Person *pNode=new Person; Init(pNode,Pnum); cout"他们按照这样的顺序站成了一圈:" ...
个人分类: 数据结构和算法|279 次阅读|3 个评论 热度 2
分享 小甲鱼视频--C++快速入门--类模版--基于模版的栈代码保存
2013-11-23 15:19
//main.cpp //Creat at 2013-11-23 //程序入口,控制栈的实现 //Created by Kaka //Latest update:2013-11-23 //栈指针修改为有符号数 #include iostream #include "ClassDef.h" int main() { StackintintStack(80); int choice = NULL; do //实现栈的循环处理 { ...
个人分类: C++|446 次阅读|5 个评论 热度 4

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-28 20:18

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部