码迷,mamicode.com
首页 >  
搜索关键字:fun    ( 10813个结果
函数深入理解---函数的值传递
函数的值传递//由于函数是对象,所以可以直接把函数参数传递进来function callFun(fun,arg){ //第一个参数就是函数对象 return fun(arg);}function sum(num){ return num +100;}function say(str...
分类:其他好文   时间:2014-12-12 18:19:28    阅读次数:153
javascript 算法
冒泡算法:1,var array = [1,3,5,2,4,6,9,7,8];var fun = function(arr){ var j = 0, tem, len = arr.length; while(len > 0){ for(;j arr[j + 1]){ tem = arr[j]; ar...
分类:编程语言   时间:2014-12-10 17:49:10    阅读次数:213
jQuery扩展工具方法
共享学习Jquery源码的一些东西jQuery.extend({expando : 生成唯一JQ字符串(内部)noConflict() : 防止冲突----------------------------------------------isReady : DOM是否加载完(内部) $(fun.....
分类:Web程序   时间:2014-12-10 13:58:59    阅读次数:155
iOS 6 By Tutorials ---第二章--【第二弹】--【翻译】
Fun with instance variables实例变量的乐趣Take a look at MasterViewController.h:——看看 MasterViewController类@interface MasterViewController : UIViewController ....
分类:移动开发   时间:2014-12-10 12:29:14    阅读次数:291
thinkphp 支付宝错误 Class 'Think' not found
Class 'Think' not found D:\www\DonatePlatform\ThinkPHP\Extend\Vendor\alipay\lib\alipay_submit.class.php 第 29 行.经过仔细排查发现alipay_submit.class.php中这个方法fun...
分类:Web程序   时间:2014-12-10 10:38:49    阅读次数:167
计算程序运行时间
摘自Cookbook: 1 #!/usr/bin/env python 2 import time 3 def timeo(fun, n=1000): 4 def void( ): pass 5 start = time.clock( ) 6 for i in range...
分类:其他好文   时间:2014-12-09 21:23:54    阅读次数:148
C++类中const的用法
C++ 类中的const用法总结:先看一个例子:class A{public: A(int x) : num(x), b(x) {} void fun(const A& a); //const修饰函数形参 int GetNum(void) const;//const修饰不修改成员变量的函数 ...
分类:编程语言   时间:2014-12-09 17:29:35    阅读次数:271
三类最基本排序(插入,冒泡,选择)
插入是稳定的,冒泡稳定性取决于是否有等号,选择是不稳定的 #include #include #include #include #include #include using namespace std; void fun(); int main() { fun(); return 0; } void fun() { int temp,i,j, arr1[8]=...
分类:编程语言   时间:2014-12-08 21:28:42    阅读次数:186
9.抽象类和抽象函数
1.抽象函数语法特征(天生就是用来当爹的) 定义:只有函数的定义,没有函数体的函数(没有实体)。不能被初始化。 abstract void fun();使用abstract定义的类被成为抽象类 特性: 1.抽象类不能够用new生成对象,天生用来被继承; 子类继承抽象类,再复写抽象函数,使该类就不是抽...
分类:其他好文   时间:2014-12-08 17:26:30    阅读次数:226
【控件扩展】带圆角、边框、渐变的panel
下载地址: http://files.cnblogs.com/chengulv/custompanel_demo.zipusing System;namespace LC.Fun{ /// Panel扩展 带圆角,颜色渐变 [System.Drawing.ToolboxBitmapAtt...
分类:其他好文   时间:2014-12-05 17:02:42    阅读次数:530
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!