//获取元素相对于浏览器的位置 getPosition: function (el) { _x = 0, _y = 0; while (true) { //todo 由于 获取td tr的offsetT...
分类:
编程语言 时间:
2015-04-25 23:57:48
阅读次数:
289
Writer:BYSocket(泥沙砖瓦浆木匠) 微博:BYSocket 豆瓣:BYSocket ??? 泥瓦匠初次遇见 navicat 是在 java.lang.Object 源码中的一个hashCode方法: 1 public native int hashCode(); ??? 为什么有个nav...
分类:
编程语言 时间:
2015-04-25 22:55:32
阅读次数:
227
Writer:BYSocket(泥沙砖瓦浆木匠)
微博:BYSocket
豆瓣:BYSocket
泥瓦匠初次遇见 navicat 是在 java.lang.Object 源码中的一个hashCode方法:
?
1
public
native int hashCode();
...
分类:
编程语言 时间:
2015-04-25 22:54:29
阅读次数:
230
//引用复习
#include
using namespace std;
void show1()
{
cout
}
void show2()
{
cout
}
void show3()
{
cout
}
int main()
{
int one = 1;
int &r1(one); //左值...
分类:
编程语言 时间:
2015-04-25 22:50:54
阅读次数:
204
/*#include
using namespace std;
//2014!里面0的个数.
int Giral(int x)
{
int i=0;
int j=0;
while(x)
{
int sum = x;
if(x%2==0)
{
while(x%2==0)
{
x/=2;
i++;
}
}
if(x%5==0)
...
分类:
编程语言 时间:
2015-04-25 22:51:11
阅读次数:
283
linkedList和arrayList的各种方法进行多线程的对比...
分类:
编程语言 时间:
2015-04-25 22:50:14
阅读次数:
254
//C++ 在堆上开辟与释放二维、三维指针
#include
using namespace std;
int main()
{
//二级指针的开辟与释放
int number = 0;
int** p = new int*[4];
for(int i = 0; i
{
p[i] = new int[4];
}...
分类:
编程语言 时间:
2015-04-25 22:48:07
阅读次数:
176
python创建xml实例模仿下面的xml文件,使用python脚本进行创建。 使用代码如下:#coding=utf-8from xml.dom import minidomdoc = minidom.Document()...
分类:
编程语言 时间:
2015-04-25 22:45:03
阅读次数:
230
前几日项目组内出shell OJ题进行练习, 题目大概为:现有配置文件conf.ini如下,编写shell,输入title和key,输出其值,如输入FIFO1 a1 ,则输出11#this is a config file[FIFO1]a1=11 b1=12 c1=13[FIFO2]a2=21 b2...
分类:
编程语言 时间:
2015-04-25 22:45:06
阅读次数:
189
问题描述:Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding ele...
分类:
编程语言 时间:
2015-04-25 22:41:59
阅读次数:
172
因为题目说了,两个人之间总有一个人喜欢另一个人,而且不会有两个人互相喜欢。所以只要所给的图中有一个环,那么一定存在一个三元环。所以用拓扑排序判断一下图中是否有环就行了。 1 #include 2 #include 3 4 const int maxn = 2000 + 10; 5 char G...
分类:
编程语言 时间:
2015-04-25 22:42:17
阅读次数:
168
一、序列化和反序列化的概念 把对象转换为字节序列的过程称为对象的序列化。 把字节序列恢复为对象的过程称为对象的反序列化。 对象的序列化主要有两种用途: 1) 把对象的字节序列永久地保存到硬盘上,通常存放在一个文件中; 2) 在网络上传送对象的字节序列。 在很多应用中,需要对某些对象进行序...
分类:
编程语言 时间:
2015-04-25 22:40:41
阅读次数:
355
原题:Given a string, find the length of the longest substring without repeating characterFor example, the Longest substring without repeating letters fo...
分类:
编程语言 时间:
2015-04-25 22:41:48
阅读次数:
229
import java.text.*;public class StringAlign extends Format{ public static final int JUST_LEFT='l'; //左对齐常量 public static final int JUST_RIGHT='r'; /.....
分类:
编程语言 时间:
2015-04-25 22:39:15
阅读次数:
203
来自:http://blog.csdn.net/udbnny/article/details/5870076 先了解AOP的相关术语:1.通知(Advice):通知定义了切面是什么以及何时使用。描述了切面要完成的工作和何时需要执行这个工作。2.连接点(Joinpoint):程序能够应用通知的一个“时...
分类:
编程语言 时间:
2015-04-25 22:40:44
阅读次数:
171
1 package sorting; 2 3 /** 4 * 归并排序 5 * 平均O(nlogn),最好O(nlogn),最坏O(nlogn);空间复杂度O(n);稳定;较复杂 6 * @author zeng 7 * 8 */ 9 public class GuibingPaixu...
分类:
编程语言 时间:
2015-04-25 22:39:12
阅读次数:
173
HLSL中提供的true和false关键字与C++相同。int:32位有符号整数 half:16位浮点数 float:32位浮点数 double:64位浮点数 float2 float3 float4 分别为 2D 3D 4D向量。复合分量:(以下为复制操作)不一定要复制每个分量,可以只复制x...
分类:
编程语言 时间:
2015-04-25 22:37:12
阅读次数:
194