user:js========var user=document.getElementById('user');user.oncopy=user.onpaste=function () { return false;}
分类:
其他好文 时间:
2015-06-19 22:57:49
阅读次数:
159
publicclassCell{ publicintx; publicinty; publicCell(intx,inty){ this.x=x; this.y=y; } publicStringtoString(){ return+x+","+y; } publicbooleanequals(Objectobj){ if(this==obj){ returntrue; } if(obj==null){ returnfalse; } if(objinstanceofCell){ ..
分类:
其他好文 时间:
2015-06-19 21:51:01
阅读次数:
126
1:方法(掌握) (1)方法:就是完成特定功能的代码块。 注意:在很多语言里面有函数的定义,而在Java中,函数被称为方法。 (2)格式: 修饰符 返回值类型 方法名(参数类型 参数名1,参数类型 参数名2...) { 方法体语句; return 返回值; } 修饰符:目前就用 pu...
分类:
编程语言 时间:
2015-06-19 20:05:43
阅读次数:
130
int (^myBlock)(NSString *) = ^(NSString *string){return [string intValue];} ;int count = 0;int 块的类型 ^声明一个myBlock块 (NSString)有一个参数确定参数类型^(NSString *st....
分类:
移动开发 时间:
2015-06-19 20:00:42
阅读次数:
156
#include #include //查找该元素是否已经存在int find(char t[],int len,char ch){ int i; for(i = 0; i < len; i++) { if (t[i] == ch) { return 1; } } return 0;}ch...
分类:
其他好文 时间:
2015-06-19 18:42:13
阅读次数:
111
原题是找到一组数的全排列Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3]...
分类:
编程语言 时间:
2015-06-19 18:14:46
阅读次数:
167
leetcode - Pascal's TriangleGivennumRows, generate the firstnumRowsof Pascal's triangle.For example, givennumRows= 5,Return[ [1], [1,1], [1,2...
分类:
其他好文 时间:
2015-06-19 18:12:49
阅读次数:
128
创建新的数据库的语句
<?php
class CategoryController extends Controller{
public function filters(){
return array(
'accessControl',
);
} public function accessRules...
分类:
其他好文 时间:
2015-06-19 16:52:44
阅读次数:
120
创建新的数据库的语句
<?php
class CategoryController extends Controller{
public function filters(){
return array(
'accessControl',
);
} public function accessRules...
分类:
其他好文 时间:
2015-06-19 16:50:46
阅读次数:
95
#include #include int main(){ char str[100]; while(gets(str) != NULL) { printf("%s\n",str); } return 0;}View Code
分类:
其他好文 时间:
2015-06-19 16:40:06
阅读次数:
104