- 博客(7)
- 资源 (3)
- 收藏
- 关注
原创 外观模式与单件模式的举例
<br /><br />#include <iostream><br />#include <string><br />using namespace std;<br />//外观模式与单件模式的举例<br />//外观模式主要用于在一个子系统提供统一的接口,减少类与类之间的耦合<br />//在外观模式中,对于类而言,成员函数,我们称之为方法 ,对于子系统而言,我们称之为对外的接口<br />//单件模式中,只允许有一个类的实例<br />//此处,子系统是Facade(外观类)与Message(消息类)
2011-04-28 10:37:00 393
原创 A Simple IndexSearch
<br />A simple index search,no illustrate,just simple.write it and practise,and feel it<br /> <br /> <br />// IndesSearch.cpp : Defines the entry point for the console application.<br />//<br />#include "stdafx.h"<br />#include "stdlib.h"<br />#define INDE
2010-12-22 23:16:00 281
原创 a little thinking from a short video
<br /> Today,I watched a short video about career planing from www.lampbrother.net website.It tell many aspects of our study and life,including our university,establish a bussiness,get a job,to MPA and so on.Though I don't Know the teacher's name
2010-12-21 23:59:00 252
原创 BinarySortTree二叉排序树(2010年12月07日)
<br />It is a easy algorithm to create binary sort,insert one data into the tree,and delete a data from the the tree.I am not a high person,so I hope someone could give me more and better advices to rewrite it.and I do last explain,I write these words and
2010-12-07 23:32:00 374
原创 kmp
<br />#include <iostream><br />#include <string><br />using namespace std;<br />void get_next(string ssub,int *next){<br /> int i=3;<br /> next[1]=0;next[2]=1;<br /> while(i<ssub.size()){<br /> <br /> int j=i-1;<br /> while(j>0){<br /> <br /> if(ssub[
2010-07-24 00:16:00 177
原创 分析C语言中的声明
<br />C语言中的类型说明是特别丰富的,不同的组合有不同的意义。比如说数组指针,指针数组,函数指针,指针函数,他们的样子都长得差不多,如果不能掌握如何去分析他们,靠死记的话,就很难灵活应用。现在慢慢的学习如何分析C语言的声明吧。<br /> <br />int a;<br /> <br />可以说声明了一个int型变量a,也可以说是把a声明为一个in型变量,在这里,这两句话的意思是一样的,所表达出的效果也是一样的。但是,在更复杂一点的C语言声明中,它们之间的区别可能会大相径庭了。下面再看一个吧。<br
2010-07-20 10:02:00 236
原创 认识自己
今天是周五,只有两节课,本来是计划去溜冰的,但我坐在网吧里盯着屏幕就不再走了。坐得越久,心情越沉,越缺乏那种活力,越想就什么都越不想做,看着屏幕,想啊想啊............. 我想做一个软件工程师,我找了好多相关的资料,但我还是迷惘了,我不知道自己要做什么,我没有计划,没有安排,跟无头蝇没有什么区别。 晚上回到寝室,寝室里没有人,室友们也不知道做什么去
2009-04-20 17:26:00 294
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人