摘要: #include<cstdio>//字典树#define kind 26struct Treenode{ bool hasStr;// int count; Treenode*next[kind];};Treenode Memory[1000000]={0};int MemoryId=0;bool insert(Treenode*root,const char*word){ Treen... 阅读全文
posted @ 2010-04-14 22:39 yangjinbo28 阅读(131) 评论(0) 推荐(0)
摘要: #define Max 101int next[Max];void getNext(const char*t,int tl){ int i=0,j=-1; next[0]=-1; while(i<tl) { if(j==-1||t[i]==t[j])next[++i]=++j; else j=next[j]; }}int nextval[Max];void getNextVal(const ... 阅读全文
posted @ 2010-04-10 21:01 yangjinbo28 阅读(142) 评论(0) 推荐(0)
摘要: 这个是上上星期做的一个demo,由于一些原因用不上。现在发出来,如果有园友用的上的话,就不会浪费了。^_^ 当然自己水平还是有限的,有什么问题,欢迎各位朋友指正。先谢谢了。已经实现的功能: 控制点的拖拉 元素的移动 箭头的移动。 还未实现的功能:可编辑的TextBlock 保存为xml的功能…… 开发环境是:vs2010beta,silverlight 3.0下载链接 阅读全文
posted @ 2010-03-30 09:06 yangjinbo28 阅读(451) 评论(0) 推荐(0)