码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
20150619禁止用户复制黏贴
user:js========var user=document.getElementById('user');user.oncopy=user.onpaste=function () { return false;}
分类:其他好文   时间:2015-06-19 22:57:49    阅读次数:159
重写equals和toString
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
Java_Day05(java 基础下,方法与数组)
1:方法(掌握) (1)方法:就是完成特定功能的代码块。 注意:在很多语言里面有函数的定义,而在Java中,函数被称为方法。 (2)格式: 修饰符 返回值类型 方法名(参数类型 参数名1,参数类型 参数名2...) { 方法体语句; return 返回值; } 修饰符:目前就用 pu...
分类:编程语言   时间:2015-06-19 20:05:43    阅读次数:130
iOS oc中的 block使用
int (^myBlock)(NSString *) = ^(NSString *string){return [string intValue];} ;int count = 0;int 块的类型 ^声明一个myBlock块 (NSString)有一个参数确定参数类型^(NSString *st....
分类:移动开发   时间:2015-06-19 20:00:42    阅读次数:156
c 字符串压缩
#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
【算法】[leetcode] permutations的讨论(转载)
原题是找到一组数的全排列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 Triangle
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
关于后盾网yii框架的学习小结(10)--使用AR类的增删改查
创建新的数据库的语句 <?php class CategoryController extends Controller{ public function filters(){ return array( 'accessControl', ); } public function accessRules...
分类:其他好文   时间:2015-06-19 16:52:44    阅读次数:120
关于后盾网yii框架的学习小结(10)--使用AR类的增删改查
创建新的数据库的语句 <?php class CategoryController extends Controller{ public function filters(){ return array( 'accessControl', ); } public function accessRules...
分类:其他好文   时间:2015-06-19 16:50:46    阅读次数:95
poj3062---输入什么输出什么
#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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!