BeatificDevin

。。

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年12月15日

摘要: /*汉诺塔问题*/#include #include //定义n为移动的层数,x,y,z分别代表三根柱子,表示把前n层塔牌从x借助y移动到zvoid move(int n,char x,char y,char z){ if(n == 1) { printf("从 %c 移动... 阅读全文
posted @ 2014-12-15 22:12 BeatificDevin 阅读(284) 评论(0) 推荐(0) 编辑

摘要: /*输入一个字符串实现逆序输出*/#include #include void print(){ char c; scanf("%c",&c); if(c != '#') print(); if(c != '#') printf("%c",c);}... 阅读全文
posted @ 2014-12-15 21:47 BeatificDevin 阅读(3746) 评论(0) 推荐(0) 编辑

摘要: #include #include #define ElemType inttypedef struct QNode{ ElemType data;//定义队列中的元素 struct QNode *next;}QNode;typedef struct LinkQueue{ QNod... 阅读全文
posted @ 2014-12-15 20:14 BeatificDevin 阅读(2011) 评论(0) 推荐(0) 编辑

摘要: 输入 :后缀表达式(可带浮点数)输出:double型的计算结果代码:#include #include #include #define ElemType double#define Stack_Init_Size 100#define Increase_Size 10#define MaxBuff... 阅读全文
posted @ 2014-12-15 12:48 BeatificDevin 阅读(728) 评论(0) 推荐(0) 编辑

摘要: 汉化: 在安装目录 D:\Program Files\CodeBlocks\share\CodeBlocks(我的安装目录)下,新建文件夹locale,然后在locale文件夹内建立文件夹zh_CN然后,把下载好的汉化包zh_CN.mo(汉化包最好改成这个名字)放入这个文件夹(zh_CN),重启C... 阅读全文
posted @ 2014-12-15 10:33 BeatificDevin 阅读(1972) 评论(0) 推荐(0) 编辑