上一页 1 ··· 8 9 10 11 12
摘要: 这本是个简单问题,但网上却没有个统一的说法C++语言: Codee#22991#include <stdio.h> #include <malloc.h> typedef struct node { char data; struct node *lchild; struct node *rchild; } BTNode; void CreateBTNode(BTNode * &b, char *str) { BTNode *St[10086], *p = NULL; int top = -1, k, j = 0; char ch; b = NULL; ch = 阅读全文
posted @ 2011-10-06 19:55 strorehouse 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 1015. Reversible Primes (20)Areversible primein any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a prime.Now given any two positive integers N (< 105) and D (1 &l 阅读全文
posted @ 2011-10-03 18:37 strorehouse 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 0 ( 0 | 1 )*101最简DFA:View Code 1 #include <cstdio> 2 #include <cmath> 3 #include <cstdlib> 4 #include <cstring> 5 #include <cctype> 6 #include <vector> 7 #include <map> 8 #include <queue> 9 #include <list>10 #include <stack>11 #include < 阅读全文
posted @ 2011-04-28 16:11 strorehouse 阅读(3796) 评论(0) 推荐(0) 编辑
摘要: 1c盘搜索 “codeblocks" 找到 default.conf ,用编辑器打开,搜索"colour_sets",替换 <colour_sets> 与</colour_sets>之间全部内容,注意以上过程需确保code blocks(CBC)处于关闭状态,要不然配置文件会自动恢复。2.打开CBC需要更改光标颜色(不然会看不见光标),过程:setting -> editor -> Margins and caret -> Caret -> colour,选择喜欢的颜色,完成,仿vim中的desert颜色主题切换成功 阅读全文
posted @ 2011-04-10 12:12 strorehouse 阅读(5053) 评论(0) 推荐(0) 编辑
摘要: definitions && declarationsWhen you need to share variables or functions across several source files, you will of course want to ensure that all definitions and declarations are consistent. The best arrangement is to place each definition in some relevant .c file. Then, put an external decla 阅读全文
posted @ 2011-02-18 20:26 strorehouse 阅读(166) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12