- 博客(7)
- 收藏
- 关注
原创 cvsnt & wincvs 配置
下载:cvsnt :http://www.march-hare.comwincvs:http://www.wincvs.orgcvsnt ver. 2.5.03按照提示安装完毕。cvsnt:打开 CVSNT Control Panel =>Repository configuration => Add =>Location: X:/cvs Name:/root 在X:/
2007-08-31 23:56:00 450
原创 spider monkey 中 BMH的使用
因为项目中嵌入了spider monkey,需要做剪裁和扩展,因此对源码做了点研究。在读String的实现的时候,发现str_IndexOf使用的字符串匹配算法就是著名的BMH算法,从实际效率考虑,并不是所有情况下都使用BMH算法,而是在如下情况下 if ((jsuint)(patlen - 2) = 512) 才使用,其余情况下则使用普通的遍历方法查找字符串。patlen是匹配串长度,t
2007-07-15 13:57:00 855
原创 ubuntu体验
装了Ubuntu一个多礼拜了,发现自己一次windows都没启动过了,看来对我来说,Ubuntu完全够用了。下面说说体验过程:首先在Ubuntu官方下载镜像:ubuntu-7.04-desktop-i386.iso本来想刻盘安装,可是没有CD了,那就从硬盘安装吧。方法(源自forum.ubuntu.org.cn): 1、从后面的链接下载相关引导文件并解压; 2、在任意盘的根目录
2007-07-07 22:49:00 832
原创 从头开始
不再浮躁,脚踏实地,从头开始..本月目标:WINDOWS核心编程(已阅至第八章) . More Effective C++(重新阅读,认真写下心得笔记)
2006-08-07 22:06:00 611
原创 remove() and erase()
#include #include #include using namespace std;template inline void print_elements(const T & coll, const char * str){ typename T::const_iterator itor; cout for(itor = coll.begin(); itor != coll.end
2006-04-24 16:03:00 916
原创 heapsort的实现
#pragma once#include using namespace std;template class HeapList{ private: Type* entry; int count; public: HeapList(); HeapList(int n); HeapList(Type arr[],int n); ~HeapList(){ if(count >
2006-04-23 17:45:00 887
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人