码迷,mamicode.com
首页 >  
搜索关键字:template method    ( 21931个结果
First-class Everything (Python缔造者Guido van Rossum关于bound/unbound method的来历叙述)
First-class Everything-- Guido van RossumFirst-class object: 第一类对象。意指可在执行期创建并作为参数传递给其他函数或存入一个变量的对象。简而言之,第一类对象在使用时没有任何限制。第一类对象典型特征是可以动态创建、销毁,作为参数传递,可以作...
分类:编程语言   时间:2014-06-20 08:48:46    阅读次数:287
Swift中文教程(六)--枚举和结构
原文:Swift中文教程(六)--枚举和结构Enumerations枚举使用enum来创建一个枚举。跟Classes(类)和其他类型的命名方式一样,枚举也可以有Method(方法)。 1 enum Rank: Int { 2 case Ace = 1 3 case Two, Three, Four,...
分类:其他好文   时间:2014-06-11 23:21:03    阅读次数:395
object c
#import const char *name = class_getName([NSObject class]); printf("%s\n", name);void PrintObjectMethods() {unsigned int count = 0;Method *methods = ....
分类:其他好文   时间:2014-06-11 10:51:59    阅读次数:210
C++ 模板类解析
具体模板类作用这边就不细说了,下面主要是描述下模板类的使用方法以及注意的一些东西。#include using namespace std;template //定义类模板class Compare{ public : Compare(numtype a,numtype b) {x=a...
分类:编程语言   时间:2014-06-11 08:31:33    阅读次数:199
freemarker自定义标签报错(四)
freemarker自定义标签 1、错误描述 六月 05, 2014 11:31:35 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error 严重: Template processing error: "Error executing macro: write\nrequired parameter: nums is not s...
分类:其他好文   时间:2014-06-09 23:18:11    阅读次数:353
Android 播放声音
在Android应用中,有时候为了用户体验更佳,我们会为默写情况添加声音效果,比如点击按钮后发出声音,以下代码可以轻松实现声音效果: new Thread(new Runnable() {    @Override    public void run() {     // TODO Auto-generated method stub     MediaPlayer mPlayer =...
分类:移动开发   时间:2014-06-08 16:29:48    阅读次数:243
04 对象与类
类是构建对象的模板或蓝图.所以, 通常是, 一个TotalTest类含有main方法, 用来启动程序 等等, 剩下的其他类, 就好比C的 struct+method() 封装在一起.类之间的关系:依赖:( Uses-a), 应该尽量减少类之间的相互依赖, 如果类A不知道B的存在, 它就不会关心B的任...
分类:其他好文   时间:2014-06-08 02:08:15    阅读次数:276
How JSP work.
A JSP page exists in three forms:JSP source code:consists of a mix of HTML template code.Java language statements.JSP directives and actions that desc...
分类:Web程序   时间:2014-06-08 00:18:41    阅读次数:523
Algorithm | Vector
因为平常用的话只是vector的一些非常简单的功能,基本上把它当数组来用,现在也只是把这一部分写了一些。 1 template 2 class XVector { 3 public: 4 XVector(int cacheSize):cacheSize(cacheSize), count(0...
分类:其他好文   时间:2014-06-07 23:28:39    阅读次数:287
排序算法--(二)
选择排序 直接选择排序: 选择排序,每一趟找到一个最小(大)值,每一趟遍历的数据减少一次。 template void SelectSort(T a[],int length){ T temp; for (int i=0;i0;i--) { shift(a,i,n); //n只是起条件判断作用,并不...
分类:其他好文   时间:2014-06-07 21:10:36    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!