这里把css和html合在一块写了,这块代码只是布局和样式不是重点 下面是Javascript代码,主要是通过左右两个按钮来控制图片左右切换 ...
分类:
编程语言 时间:
2016-10-27 12:51:49
阅读次数:
379
判断链表是否有环,定义指针一快(走2部)一慢(走1部),相遇即有环。 两个指针,一快一慢,有环,则相遇必在环内,找出相遇节点 接下来,就可以统计环中节点个数,找出环的入口节点 设节点个数为n,快指针先走n步,然后快慢指针一起一步一步走,相遇节点即环入口节点。 ...
分类:
其他好文 时间:
2016-10-26 19:48:05
阅读次数:
209
Java中多态性的实现 什么是多态 下面是多态存在的三个必要条件,要求大家做梦时都能背出来! 多态存在的三个必要条件一、要有继承;二、要有重写;三、父类引用指向子类对象。 多态的好处: 1.可替换性(substitutability)。多态对已存在代码具有可替换性。例如,多态对圆Circle类工作, ...
分类:
其他好文 时间:
2016-10-23 09:34:24
阅读次数:
176
#include<iostream>#include<cmath>using namespace std; class Point{ private: double x,y; public: Point(); Point(double xv,double yv); Point(Point& pt); ...
分类:
其他好文 时间:
2016-10-22 15:10:14
阅读次数:
219
#include <iostream> #include <iomanip> #include <cmath> using namespace std; //your code will be hereclass Land { public: Land() : price_(0) {} explic ...
分类:
其他好文 时间:
2016-10-22 15:00:05
阅读次数:
140
NameDescription ARROW Draws an arrow. CIRCLE Draws a circle. DOWN_ARROW Draws an arrow that points down. ELLIPSE Draws an ellipse. EXTENT Draws an ext ...
ol建立有序列表,该列表可以用设置type=”A/a” 其语法架构为 <ol> <li></li> <li></li> </ol> Ul建立无序列表, 该列表可以用设置type=” disc/circle/square” 其语法架构为 <ul> <li></li> <li></li> </ul> 创 ...
分类:
Web程序 时间:
2016-10-19 02:47:14
阅读次数:
162
Candy Distribution Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6033 Accepted: 3351 Description N children standing in circle who are nu ...
分类:
其他好文 时间:
2016-10-16 19:24:26
阅读次数:
160