- 博客(4)
- 资源 (12)
- 收藏
- 关注
原创 实现正则表达式的.和*
失败的经历:1.想用循环来实现,发现基本不可能啊。2.想用NFA->DFA实现,还是算了吧,又不是真的实现正则表达式引擎。建议先自己实现,我这边有testCase可以测试,一边调试一边找错,会发现最后的实现很不错。啥都不说了,上代码。本题目我最招是从coding_interview上看到的,这本书也很是不错。// How do you implement
2013-07-17 22:00:38
640
原创 使用Google Unit Test 测试你的C++代码
最近看了Bob大叔的《程序员的职业素养》,明白专业程序员是要写覆盖率100%的单元测试的,所以就在网上找了一个开源的测试框架试试,Google C++ Testing Framework网站是 http://code.google.com/p/googletest/我是在windows上使用visual studio 2012来编译使用gtest的如何使用:1.
2013-07-14 23:55:48
1815
原创 第二章 算法入门
循环不变式 loop invariantsWe use loop invariants to help us understand whyan algorithm is correct. We must show three things about a loop invariant: · Initialization: It is true prior to
2009-07-18 16:41:00
535
原创 第一章 算法在计算机中的作用
什么是算法 What are algorithms? Informally, an algorithm is anywell-defined computational procedure that takes some value, or set of values,as input and produces some value, or set of values, as
2009-07-18 16:33:00
718
1
boost书 boost 举例
2009-07-18
More Effective C++
2009-07-18
windows 程序设计 第五版 最新
2009-07-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人