上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 152 下一页
摘要: 原文地址:http://blog.csdn.net/wangyuling1234567890/article/details/24564891 GlusterFS 的内存分配主要有两种方式,一种是内存池分配,一种是普通内存分配。 不了解内存池使用的请查阅相关文档,这里不再解释。 内存池分配使用一个m 阅读全文
posted @ 2017-07-26 08:21 cxchanpin 阅读(502) 评论(0) 推荐(0)
摘要: 工厂方法模式的定义 工厂方法模式的应用相当广泛。工厂方法模式在 Java API 中的应用比比皆是:java.util.Collection 接口的 iterator 方法就是一个非常著名的工厂方法模式的演示样例;java.net.URLStreamHandlerFactory 的 createUR 阅读全文
posted @ 2017-07-25 21:33 cxchanpin 阅读(655) 评论(0) 推荐(0)
摘要: DZY Loves Chessboard time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output DZY loves chessboard 阅读全文
posted @ 2017-07-25 19:59 cxchanpin 阅读(165) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; void f(int(&p)[3]){ cout<<p[0]<<endl; cout<<p[2]<<endl; } int main(){ int a1[3]={1,2,3}; cout<<a1<<endl; cout< 阅读全文
posted @ 2017-07-25 19:30 cxchanpin 阅读(262) 评论(0) 推荐(0)
摘要: tm结构体的定义在time.h里面 struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; }; /* 阅读全文
posted @ 2017-07-25 18:28 cxchanpin 阅读(247) 评论(0) 推荐(0)
摘要: Java中对象、对象引用、堆、栈、值传递以及引用传递的详解 1.对象和对象引用的差别: (1).对象: 万物皆对象。对象是类的实例。在Java中new是用来在堆上创建对象用的。一个对象能够被多个引用所指向。 (2).对象引用: 相似于C++中的地址。通过对象引用能够找到对象。一个引用能够指向多个对象 阅读全文
posted @ 2017-07-25 16:48 cxchanpin 阅读(1905) 评论(0) 推荐(0)
摘要: ios一些控件还是挺美丽的,可是对android程序猿来说可能比較苦逼,由于ios一些看起来简单的效果对android来说可能就没那么简单了,可是没办法非常多产品都是拿ios的一些控件叫android开发者来照着做,今天就来做一个设置中常见的开关效果, 思路: 1:准备二张图片 一个是包括开和关二种 阅读全文
posted @ 2017-07-25 16:15 cxchanpin 阅读(1861) 评论(0) 推荐(0)
摘要: 转载请标明出处: http://blog.csdn.net/lmj623565791/article/details/47396187; 本文出自:【张鸿洋的博客】 一、概述 中间拖了蛮长时间了。在上一篇我们介绍了ViewDragHelper,详情:ViewDragHelper全然解析,当然了,上一 阅读全文
posted @ 2017-07-25 14:37 cxchanpin 阅读(266) 评论(0) 推荐(0)
摘要: 这一节我们来看一下在我们开发的过程中,在什么时候我们要用到statickeyword进行静态修饰。 我们这里所说的静态。无非就是两种。一种是静态变量,一种是静态函数,我们分这两种情况进行说明statickeyword的使用场合。 一、静态变量 我们在7.8节中对statickeyword特点和7.9 阅读全文
posted @ 2017-07-25 14:08 cxchanpin 阅读(165) 评论(0) 推荐(0)
摘要: 引言 图片处理在前端工作中可谓占领了非常重要的一壁江山。而图片的Base64编码可能相对一些人而言比較陌生,本文不是从纯技术的角度去讨论图片的base64编码。标题略大,只是仅仅是希望通过一些浅显的论述,让你知道什么是图片的base64编码,为什么我们要用它,我们怎样使用而且方便的使用它。并让你懂得 阅读全文
posted @ 2017-07-25 13:07 cxchanpin 阅读(554) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 152 下一页