定义 迭代器模式(Iterator
Pattern)提供一种方法访问一个容器对象中各个元素,而又不需暴露该对象内部细节。 迭代器模式通用类图 Iterator抽象迭代器
抽象迭代器负责定义访问和遍历元素的接口,而且基本上是有固定的3个方法:First()获取第一个元素,Next()访问下一个元素,I...
分类:
其他好文 时间:
2014-06-09 20:55:24
阅读次数:
316
Node* findMid(Node* &head){ if(head ==
NULL||head->next == NULL) return head; Node* p = head; Node* q = head;
while(q->next->ne...
分类:
其他好文 时间:
2014-06-09 17:55:34
阅读次数:
204
#include using namespace std;struct Node{ Node
*next; int elem;};void creatList(Node* &head){ head = new Node; int elem;
cin>>elem; ...
分类:
其他好文 时间:
2014-06-09 17:50:43
阅读次数:
219
#include using namespace std;struct Node{ Node
*next; int elem;};void creatList(Node* &head){ head = new Node; int elem;
cin>>elem; ...
分类:
其他好文 时间:
2014-06-09 16:07:55
阅读次数:
229
You know as a beginner to learn WCF, the first
thing is to make a simplest WCF service work like a classic "Hello World"
console application. Now I wi...
当单个文件需要特别样式时,就可以使用内部样式表。可以在 head 部分通过
分类:
Web程序 时间:
2014-06-09 13:58:23
阅读次数:
261
两者在中文中都有分类的意思,具体区别我查了半天还是有点迷糊,有一个比较简单的说法1.
categorize 的含义是分成不同的小组,一般有按照功能分类的含义 Lindsay, like his films, is hard to
categorize. Her first novel defie.....
分类:
其他好文 时间:
2014-06-08 23:53:00
阅读次数:
382
总算A了,心情好激动……如果会了一类斜率优化,基本上这类题就成了套模版了……只是k函数不同 1
var n,l,x,tail,head,m:int64; 2 i,j:longint; 3 dp,q,s:array[0..100000] of int64;
4 function k(x...
分类:
其他好文 时间:
2014-06-08 21:53:27
阅读次数:
247
I:基础绑定的实现1.在前面的两篇基础文章(路由及控制器&视图)当中,还没对QueryString的绑定进行介绍,因为我觉得它更适合放在这一章节中去介绍.我们在用WebForm去开发的时候,有时候会利用到QueryString去做一些功能如:http://localhost/First/QueryS...
分类:
Web程序 时间:
2014-06-08 19:27:12
阅读次数:
306
1) { string after = field.Substring(1); result =
first + after; } return result; ...
分类:
其他好文 时间:
2014-06-08 19:19:20
阅读次数:
347