摘要: 《临江仙》 滚滚长江东逝水,浪花淘尽英雄。是非成败转头空,青山依旧在,几度夕阳红。 白发渔樵江渚上,惯看秋月春风。一壶浊酒喜相逢。古今多少事,都付笑谈中。 n铁道部与中石油偶遇,闲谈,设樽俎:盘置青梅,一樽煮酒,国窖1573,开怀畅饮。酒至半酣,忽阴云漠漠,骤雨将至。风已满楼,铁道部与中石油凭栏观之。n 铁道部曰:“兄台知国企之奥妙否?”n 中石油曰:“未知其详。”n 铁道部曰:“国企能大能小,能升能隐;大则覆盖天下,小则隐介衙门;赚则福利与自己,赔则伸手与国家。方今人傻,国企乘时变化,携无息之贷款,分红与国外。兄台久垄断一方,必知当世国企之英雄。请试指言之。”n 中石油曰:“吾辈... 阅读全文
posted @ 2013-10-29 22:19 博园少主 阅读(152) 评论(0) 推荐(0) 编辑
摘要: #include #include #define stackinitsize 20#define stackincrement 8typedef struct{ int *base; int *top; int stacksize;}sqstack;int initstack(sqstack &s) {s.base=(int * ) malloc(stackinitsize*sizeof(int)); s.top=s.base; s.stacksize=stackinitsize; return 1; }int push(sqstack &s,int e) { ... 阅读全文
posted @ 2013-10-29 22:15 博园少主 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include #include #include "G:\JS\mystack.h"int main(){ sqstack s; int e; initstack(s); char ch; while (1) { scanf("%c",&ch); if (ch==10) break; if (ch=='(') push(s,ch); else if (ch=')') { if (em... 阅读全文
posted @ 2013-10-29 21:44 博园少主 阅读(191) 评论(0) 推荐(0) 编辑
摘要: #include #include #include "G:\JS\mystack.h"int main(){ sqstack s; int m,n,r,rod,e; initstack(s); scanf("%d %d",&n,&r); m=n; while (n) { rod=n%r; push(s,rod); n=n/r; } printf("\n\nThe resule is:%d(%d)=",m,r); while (!emptystack(s)) { pop(s... 阅读全文
posted @ 2013-10-29 21:35 博园少主 阅读(179) 评论(0) 推荐(0) 编辑
摘要: //本程序接受任意含有+、-、*、/和()的数值表达式,数值允许带小数,输入以#结束。如:((2.4+3.5)*2-(2+3.5)/2)*(2+3)##include #include "G:\express\mystack.h"char piror[7][7]={'>','>','','>', '>','>','','>', '>','>','>' 阅读全文
posted @ 2013-10-29 21:23 博园少主 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #include # include "G:\express\mystack.h"char piror[7][7]={'>','>','','>', '>','>','','>', '>','>','>','>','','>', '>','>', 阅读全文
posted @ 2013-10-29 21:13 博园少主 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 #define stackinitsize 50 5 #define stackincrement 8 6 7 typedef struct { 8 int x,y; 9 }posttype;10 11 typedef struct {12 int ord;13 posttype seat;14 int di;15 }elemtype;16 17 typedef struct{18 elemtype *base;19 elemtype *top;20 int stacksize;21 }s... 阅读全文
posted @ 2013-10-29 20:45 博园少主 阅读(248) 评论(0) 推荐(0) 编辑