码迷,mamicode.com
首页 >  
搜索关键字:递归 return    ( 77935个结果
ffmpeg代码解析
void avdevice_register_all(void){ static int initialized; if (initialized) return; initialized = 1; /* devices */ REGISTER_INOUTDEV(ALSA, alsa); REGIS...
分类:其他好文   时间:2014-04-30 04:26:51    阅读次数:351
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2014-04-30 03:52:56    阅读次数:411
Jquery表单提交方式
1.使用调用submit方法function tes1(){ //执行判断 if(校验通过){ $("#formId").submit(); }else{ return; } }2.使用ajaxSubmit 方法,用到jquery.form.js $...
分类:Web程序   时间:2014-04-30 03:23:10    阅读次数:621
LeetCode1:Two Sum
题目: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the t...
分类:其他好文   时间:2014-04-30 03:20:07    阅读次数:502
重构,改善既有代码的设计--第八章感悟
1.如果你看到一个数组的行为方式很像一个数据结构,就可以把数组变成对象private int aa,变成: int aa; public int GetAA() {return aa;}//好处:使得获取的数据更加有效
分类:其他好文   时间:2014-04-30 00:55:25    阅读次数:373
seajs 使用 jquery插件
define(function(require,exports,moudles){ return function(jquery){ (function($) { $.fn.pri= function() { alert...
分类:Web程序   时间:2014-04-30 00:07:13    阅读次数:634
C#根据关键字检索本地word文档
1 /// 2 /// 检索根目录下的子目录及其所有文件,并在datagridview中显示文档名称及路径--递归调用 3 /// 4 /// 根目录 5 /// 关键字包 6 private v...
分类:其他好文   时间:2014-04-29 22:30:43    阅读次数:617
Letter Combinations of a Phone Number
思路很简单,就是通过map对应,随后通过递归调用,这里遇到了个问题就是开始用string &re ,然后往里传re+c是不可以的,本来想省点内存,结果不行,所以只能值传递了,后来才知道string竟然还有push_back()和pop_back(),服了。 1 class Solution { 2 ...
分类:其他好文   时间:2014-04-29 19:31:07    阅读次数:524
JavaScript中的匿名函数及函数的闭包以及作用域
1。1、匿名函数函数是JavaScript中最灵活的一种对象,这里只是讲解其匿名函数的用途。匿名函数:就是没有函数名的函数。1.1 函数的定义,首先简单介绍一下函数的定义,大致可分为三种方式第一种:这也是最常规的一种function double(x){ return 2 * x; }第二...
分类:编程语言   时间:2014-04-29 18:34:42    阅读次数:694
Oracle——函数
CREATE FUNCTION annual_income(spNAme VARCHAR2) RETURN NUMBER IS yearSal number(7,2);BEGIN SELECT (sal+NVL(comm,0))*12 INTO yearSal FROM emp WHERE enam...
分类:数据库   时间:2014-04-29 18:08:00    阅读次数:497
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!