鱼C论坛

 找回密码
 立即注册
分享 中缀表达式转换为后缀表达式
kaka12300wu 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 ...
个人分类: 数据结构和算法|192 次阅读|0 个评论
分享 小甲鱼视频-数据结构和算法-约瑟夫问题-代码保存
kaka12300wu 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"他们按照这样的顺序站成了一圈:" ...
个人分类: 数据结构和算法|280 次阅读|3 个评论 热度 2

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

GMT+8, 2024-5-13 06:40

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

返回顶部