同样的html代码结构 配合不同的css代码 展示不一样的效果。html基本结构 土豪 官二代
富二代 Contents of first tab Contents of the second tab Contents of the third
tabcss代码1.tabs{ width:...
分类:
其他好文 时间:
2014-05-18 19:12:51
阅读次数:
254
下面我们来了解如何实现一个自定义的迭代器,然后再开始慢慢理解迭代器的内部工作原理。先来看一个官方的例子:
<?php
class myIterator implements Iterator {
private $position = 0;
private $array = array(
"first_element",
"second_element",
"last_element",
);...
分类:
Web程序 时间:
2014-05-18 13:58:23
阅读次数:
404
【题目】
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values in the list, only nodes it...
分类:
其他好文 时间:
2014-05-18 08:37:57
阅读次数:
370
【题目】
Implement strStr().
Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.
【题意】
实现库函数strStr(), 功能是在字符串haystack中找出目标串needle第一次出现的索引位
【思路】
字符串的匹配,可以用暴力解法,但不推荐。一般使用KMP算法求解。
简要介绍一下KMP的思想:
...
分类:
其他好文 时间:
2014-05-18 04:10:04
阅读次数:
244
好多人都是为了找实习、找工作,看看思路,手写下这个问题的代码。如果有机会还是最好真正调试一下,还是有很多细节需要注意的。不多说了,代码记录如下:
Node* Merge(Node *h1,Node *h2)
{
Node *head,*pCurrent,*head1,*head2;
head1 = h1;
head2 = h2;
if(head1==NULL)
retu...
分类:
其他好文 时间:
2014-05-18 02:59:29
阅读次数:
214
学习资料:http://msdn.microsoft.com/zh-cn/data/jj193542
视频建立的控制台应用程序,我在这里使用MVC。 一、非常有磁性的,非常优雅
很喜欢看这个人的视频,虽然我听不太懂,也不知道他叫什么。他的声音非常有磁性,让我。。。,让我。。。。。。,百听不厌。 看到...
分类:
数据库 时间:
2014-05-18 02:42:09
阅读次数:
424
除了邻接矩阵外储存图的另一种方法,适用于稀疏图。用一个有n结点,p条边的有向图,用a[i],b[i],l[i]分别表示第i条边的起点,终点,权值。first[x]表示x号结点连出的第一条边,next[i]表示与第i条边是同一个结点连出的下一条边,如果为0则表示已经没有下一条了。初始化:用last[x...
分类:
其他好文 时间:
2014-05-17 22:29:48
阅读次数:
468
This work was partially performed when the first
author wasa visitor at NCSU, supported by a fellowship from the Universityof
Pisa and MURST, Italy.Th...
分类:
其他好文 时间:
2014-05-17 21:20:32
阅读次数:
342
/这里是链表的创建其包含的是头指针phead,头节点,以及尾节点p->next = NULL
为链表创建结束标志。/判断指针为空十分重要,当然也不能忘了释放,代码是:if(head !=NULL){free(head);head = NULL;}head
= (SLNode*)malloc(size...
分类:
其他好文 时间:
2014-05-17 19:40:54
阅读次数:
255
浮层内嵌iframe及frame集合窗口,刷新父页面的多种方法 弹出子页面 子窗口刷新父窗口
刷新以open()方法打开的窗口 刷新以winodw.showModelDialog()方法打开的窗口Javascript代码方法二 : 在Head中添加
在body中添加 在底部脚本中: reloa...
分类:
Web程序 时间:
2014-05-17 18:53:28
阅读次数:
298