/************************************************************** Problem: 2631
User: wangyucheng Language: C++ Result: Accepted Time:184...
分类:
其他好文 时间:
2014-05-19 11:27:24
阅读次数:
320
1.把C++当成一门新的语言学习(和C没啥关系!真的。); 2.看《Thinking In
C++》,不要看《C++变成死相》; 3.看《The C++ Programming Language》和《Inside The C++ Object
Model》,不要因为他们很难而我们自己是初学者...
分类:
编程语言 时间:
2014-05-17 14:10:38
阅读次数:
293
本篇简单回顾C#语言集合操作的变化,通过与Linq对等的面向对象的语法来认识Linq。Linq是Language Integrated Query,
初识Linq感觉跟SQL Server的Tsql很像,可以进行语言必备的逻辑操作,也可以实现对集合的直接查询。Net1.X时代C#不支持泛型,集合用元...
分类:
其他好文 时间:
2014-05-16 00:19:36
阅读次数:
427
internal static TResult ExecuteSingle(IEnumerable
query, Expression queryRoot) { return GetElementFunction(queryRoot)(query)...
分类:
其他好文 时间:
2014-05-15 20:54:39
阅读次数:
283
send($data)`. The sent data will then* be the
result of the `yield` expression. Thus it can be received using a code like*
`$data = yield;`.*/ /* What...
分类:
其他好文 时间:
2014-05-15 17:46:37
阅读次数:
311
这道题跟有?和*的那道题很像,不过要简单一些。为什么会简单呢,因为*号只能匹配跟它前面相同的字符。需要注意一点,从aab可以用c*a*b来匹配可以看出,*号可以使他之前的那个字符出现次数变成0。
昨天实验室的同学正好在做这个题,说想用递归做,我想都没想就说用递归肯定超时了。她为什么,我跟人家说因为递归的分支太多了,可怎么也想不起当初自己是怎么写的,回来一看,居然用递归做的,打脸啊。。这个题为什么...
分类:
其他好文 时间:
2014-05-15 13:29:34
阅读次数:
229
Regular Expression Matching,正则表达式...
分类:
其他好文 时间:
2014-05-15 02:35:05
阅读次数:
241
Regular Expression Special Characters
"."---Any single character(a "wildcard")
"["---Begin character class
"]"---End character class
"{"---Begin count
"}"---End count
"("---Begin grouping
")"...
分类:
其他好文 时间:
2014-05-15 01:41:09
阅读次数:
548
【题目】
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the entire input string (not partial).
The function prototype shoul...
分类:
其他好文 时间:
2014-05-14 21:36:52
阅读次数:
348
grep命令可以从文本中或者通过管道送过来的字符流中或一个"-"符号代替文件名来搜索精确或者模糊的匹配信息,grep家族有三个命令:grep,egrep,fgrep。grep支持正则表达式匹配查找egrep支持扩展正则表达式匹配查找fgrep不支持正则表达式匹配查找grep命令的格式:grep[OPT]‘PATTERN‘F..
分类:
系统相关 时间:
2014-05-14 17:24:27
阅读次数:
428