4的阶乘:4!=1*2*3*4public class g { /** * @param args */ public static void main(String[] args) { int n = 4; // 4!=1*2*3*4 ...
分类:
其他好文 时间:
2015-12-04 22:34:53
阅读次数:
149
void SkinRGB(IplImage* rgb, IplImage* _dst){ assert(rgb->nChannels == 3 && _dst->nChannels == 3); static const int R = 2; static const int G ...
分类:
其他好文 时间:
2015-12-04 20:46:00
阅读次数:
204
1、栈区(stack)—由编译器自动分配释放,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap)—一般由程序员分配释放,若程序员不释放,程序结束时可能由OS回收。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表,呵呵。 3、全局区(静态区)(static)...
分类:
其他好文 时间:
2015-12-04 20:44:03
阅读次数:
112
上周要求写自己用任何语言写一个留言版,存到数据库中,用自己的办法来解决XSS我用了JSP+MYSQL,自己写了一个过滤器来防御WEB XSS漏洞 1 package com.mess.filter; 2 3 public class HtmlFilter { 4 public static...
分类:
其他好文 时间:
2015-12-04 20:19:19
阅读次数:
123
例子: 1 publicclassTestJdbc { 2 public static void main(String[] args)throwsException { //程序入口,并抛出异常 3 Class.forName("oracle...
分类:
数据库 时间:
2015-12-04 18:42:10
阅读次数:
184
byte数组转float 以及byte转其他类型时为什么要&0xffpublic static float getFloat(byte[] b) { int accum = 0; accum = accum|(b[0] & 0xff) = 2) { int b1 = b[0] ...
分类:
其他好文 时间:
2015-12-04 18:38:49
阅读次数:
189
#region 手机端跳转到指定手机页地址 /// /// 手机端跳转到指定手机页地址 /// /// 手机页地址 public static void m_goUrl(string url) { //排除手机访问电脑端 if(BTool.getCooki...
分类:
移动开发 时间:
2015-12-04 18:25:39
阅读次数:
274
上周要求写自己用任何语言写一个留言版,存到数据库中,用自己的办法来解决XSS我用了JSP+MYSQL,自己写了一个过滤器来防御WEB XSS漏洞 1 package com.mess.filter; 2 3 public class HtmlFilter { 4 public static...
分类:
其他好文 时间:
2015-12-04 18:10:43
阅读次数:
134
self refers to the same class whose method the new operation takes place in.static in PHP 5.3's late static bindings refers to whatever class in the h...
分类:
Web程序 时间:
2015-12-04 18:07:14
阅读次数:
222
“加号代表static”是错误的说法,可能跟你那样表达的人其实意思是:“前置加号的方法相当于Java 里面的静态方法”。在Oc中,方法分为类方法和实例方法。前置加号(+)的方法为类方法,这类方法是可以直接用类名来调用的,它的作用主要是创建一个实例。有人把它称为创建实例的工厂方法。前置减号(-)的方法...
分类:
其他好文 时间:
2015-12-04 18:03:49
阅读次数:
126