码迷,mamicode.com
首页 >  
搜索关键字:classes    ( 3495个结果
cocos2dx android mk解释
LOCAL_PATH:=$(callmy-dir)include$(CLEAR_VARS)#编译库的名称LOCAL_MODULE:=cocos2dcpp_shared#编译库的文件名LOCAL_MODULE_FILENAME:=libcocos2dcpp#包含的源文件LOCAL_SRC_FILES:=hellocpp/main.cpp\../../Classes/AppDelegate.cpp\../../Classes/Card.cpp\../../Classes/Ga..
分类:移动开发   时间:2014-07-17 19:33:26    阅读次数:286
JavaScript Patterns 6.3 Klass
There’s a convention on how to name a method, which is to be considered the constructor of the class. Classes inherit from other classes. There’s acce...
分类:编程语言   时间:2014-07-17 12:54:15    阅读次数:255
java getResourcesAsStream()如何获取WEB-INF下的文件流
getResourcesAsStream()来读取.properties文件,但是getResourcesAsStream()仅在java项目时能获取根目录的文件;在web项目中,getResourcesAsStream()是获取classes目录的根路径例如:文件在WEB-INF/conf/con...
分类:编程语言   时间:2014-07-17 11:19:57    阅读次数:201
显示系统托盘列表(并执行隐藏与显示)
代码文件:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls;type TForm1 = cla...
分类:其他好文   时间:2014-07-16 19:23:58    阅读次数:277
yii源码一
CComponent:path:framework/base/CComponent.phpoverview:This file contains the foundation classes for component-based and event-driven programming. ...
分类:其他好文   时间:2014-07-16 16:03:00    阅读次数:180
Andriod APK 文件结构详解
APK文件结构        APK文件实际是一个zip压缩包,可以通过解压缩工具解开。      下面是用解压缩工具解开的APK包的结构: |-- AndroidManifest.xml |-- META-INF | |-- CERT.RSA | |-- CERT.SF | `-- MANIFEST.MF |-- classes.dex |-- res | |-- dr...
分类:其他好文   时间:2014-07-16 12:50:17    阅读次数:234
Effective C++ Item 47 请使用 traits classes 表现类型信息
经验:Traits classes 使得"类型相关信息"在编译期可用。它们以 templates 和 "templates 特化"完成实现 示例: template class deque{ public: class iterator{ public: typedef random_access_iterator_tag iterator_category; }; }; //template template struct iterator_trai...
分类:编程语言   时间:2014-07-15 22:40:20    阅读次数:372
Effective C++ Item 35 考虑 virtual 函数以外的实现
1.virtual 函数版本 class GameCharacter{ public: virtual int healthValue() const; //返回人物的健康指数, derived classes 可重新定义它 }; 2.使用 non-virtual interface 手法,那是 Template Method 设计模式的一种特殊形式。 让客户通过 public non-virtual 成员函数间接调用 private virtual 函数 class GameCharacter{ pu...
分类:编程语言   时间:2014-07-15 22:36:18    阅读次数:364
Effective C++ Item 44 将与参数无关的代码抽离 templates
经验:Templates 生成多个 classes 和多个函数,所以任何 template 代码都不该与某个造成膨胀的 template 参数产生相依关系 因非类型模板参数(non-type template parameters) 而造成的代码膨胀,往往可消除,做法是以函数参数或 class 成员变量替换 template 参数 示例: template //size_t 是非类型模板参数 class SquareMatrix{ public: //...
分类:编程语言   时间:2014-07-15 13:04:39    阅读次数:307
solr中文分词
IK是solr常用的中文分词,其配置比较难搞,试了好多次才搞定:将jar放入tomcat下WEB-INF/libconfig.xml,ext.dic,stopword.dic放入WEB-INF/classes下另外,solr4+需要使用IK_2012_ff,不要使用IK_2012_u6IK实际的效果...
分类:其他好文   时间:2014-07-15 09:52:49    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!