大家都知道C++虚函数的机制,对于基类定义为虚函数的地方,子类假设覆写,在基类指针或者引用来指向子类的时候会实现动态绑定。 但假设指针去调用非虚函数,这个时候会调用C++的静态绑定,去推断当前的指针是什么类型,就去运行哪个类型的函数。 非常有一种比較经典的使用方法,就是Template Method...
分类:
编程语言 时间:
2014-07-14 08:53:47
阅读次数:
246
Doc:If isTouchEnabled, this method is called onEnter.Override it to change the wayCCLayerreceives touch events.Default: CCTouchDispatcher::sharedDispa...
分类:
其他好文 时间:
2014-07-14 08:31:55
阅读次数:
264
原地址:http://blog.csdn.net/aeolus1019/article/details/8014798Android开发过程中代码错误报错如下:- implements android.view.View.OnClickListener.onClick- The method onC...
分类:
其他好文 时间:
2014-07-14 08:12:20
阅读次数:
137
1 使用connect-mongdo时,报错:Cannot read property 'Store' of undefined解决: require('connect-mongo')的时候加一个参数express,如下: var express = require('express'); var ...
分类:
其他好文 时间:
2014-07-14 00:30:23
阅读次数:
298
一。意义function.apply(obj,args)obj代替function里this对象args作为参数传给function二。实例1.obj代替function里this对象1 function f(){2 alert(this.x + this.y);3 ...
分类:
移动开发 时间:
2014-07-14 00:07:10
阅读次数:
235
Thread类在命名空间System.Threading里定义。Thread的Priority有5种,AboveNormal、BelowNormal、Normal、Highest和Lowest。Thread构造函数,有Thread(new ThreadStart(method))。Thread有St...
分类:
编程语言 时间:
2014-07-13 22:14:09
阅读次数:
236
import java.awt.Frame;
import java.io.*;
public class filewriter {
/**
* @param args
*/
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
//tes...
分类:
其他好文 时间:
2014-07-13 16:25:35
阅读次数:
227
最近开发微信扩展功能,用到了mb_substr()函数。系统在windows下测试都是正常的,但是放到aliyun(选用的Centos系统)下面就出现了问题,Call to undefined function mb_substr(),报出这个异常。
很显然,这是调用了没有定义的函数,可是环境都采用yum安装的,Apache和PHP都是自动安装的。怎么会出现这个错误呢?其实PHP本身也是可配置的...
分类:
Web程序 时间:
2014-07-13 16:10:44
阅读次数:
181
The Java Connections FrameWork is a group of class or method and interfacs in the java.util package. Its main purpose is to provide a unified framework for implementing common data structure. A collec...
分类:
编程语言 时间:
2014-07-13 13:43:20
阅读次数:
218
Cannot find executable for CFBundle...
分类:
其他好文 时间:
2014-07-12 20:47:23
阅读次数:
254