上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 53 下一页
摘要: //************ 课本53页,用栈来实现的简单的四则运算表达式. '#'是表达式结束符, 注意在表达式输入完毕后需再输入一个'#'表示结束. eg:4+2*3-10/5# **********//#include#include #include #inc... 阅读全文
posted @ 2015-12-10 17:10 柳下_MBX 阅读(1771) 评论(0) 推荐(0) 编辑
摘要: 这个应该是以一个数组实现两个栈的共享。 ----------------------------------------------- | | | | | | | | | | | 长度为10的数组 ... 阅读全文
posted @ 2015-12-10 16:02 柳下_MBX 阅读(305) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define LIST_INIT_SIZE 100#... 阅读全文
posted @ 2015-12-10 15:40 柳下_MBX 阅读(256) 评论(0) 推荐(0) 编辑
摘要: //双链循环线性表的表示与实现#include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2typedef int ... 阅读全文
posted @ 2015-12-10 15:39 柳下_MBX 阅读(356) 评论(0) 推荐(0) 编辑
摘要: /*Sample Inputsin(20+10){[}]Sample Outputyesno*/#include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE ... 阅读全文
posted @ 2015-12-10 15:39 柳下_MBX 阅读(819) 评论(0) 推荐(0) 编辑
摘要: /*n个人想玩残酷的死亡游戏,游戏规则如下: n个人进行编号,分别从1到n,排成一个圈,顺时针从1开始数到m,数到m的人被杀,剩下的人继续游戏,活到最后的一个人是胜利者。 请输出最后一个人的编号。Input输入n和m值。m>1。Output输出胜利者的编号。Sample Input5 3Sampl... 阅读全文
posted @ 2015-12-09 21:22 柳下_MBX 阅读(330) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef struct lnode{ int data; struct lnode* next;} node,*linklist;void initlist(linklist &l){ linklist p=(linklist)mallo... 阅读全文
posted @ 2015-12-09 20:49 柳下_MBX 阅读(223) 评论(0) 推荐(0) 编辑
摘要: D.基础数据结构——单链表(2)(链表)Time Limit: 1000 MSMemory Limit: 32768 KTotal Submit: 192 (72 users) Total Accepted: 82 (67 users) Special Judge: No Description19... 阅读全文
posted @ 2015-12-09 18:22 柳下_MBX 阅读(966) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define TRUE 1#define FALSE 0#define OK 1#define ERROR 0#define INFEASIBLE -1#define OVERFLOW -2#define LIST_INIT_SIZE 100#... 阅读全文
posted @ 2015-12-09 01:05 柳下_MBX 阅读(766) 评论(2) 推荐(0) 编辑
摘要: /* ***********************************************Author :mubaixuCreated Time :2015-12-08 20:45:05File Name :线性表顺序存储操作********************... 阅读全文
posted @ 2015-12-08 21:48 柳下_MBX 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 53 下一页