码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
Android小笔记
publicViewgetView(intposition,ViewconvertView,ViewGroupparent){ViewconvertView:启动时出现的值缓存在(View)convertView中 //如果当前为空,则加载布局 Viewview; if(cenvertView==null){ view=View.inflate(getApplicationContext(),R.layout.lv_item,null); } //如..
分类:移动开发   时间:2015-02-03 07:09:35    阅读次数:190
准备好部署私有云了吗
在实施私有云之前,询问并回答五个关于性能、安全性以及其他方面的问题是非常重要的。 当谈及云计算时,主要有三个选项: 公共云、私有云以及混合云。公共云是指在共享基础设施上提供可扩展性、弹性以及所用即所付的付费模式。而混合云则是指私有云和公共云服务的混合以及两者之间的编排。但是,私有云呢,它是什么? 虽然私有云和公共云可提供类似的优势,但是企业会出于内部部署的性质和控制等方面的考虑而选择私有云。在...
分类:其他好文   时间:2015-02-03 00:44:11    阅读次数:176
iphone 获取硬件型号
这个写原创不知道会不会被人打,要想获取手机硬件的型号+ (NSString *)platform { size_t size; sysctlbyname("hw.machine", NULL, &size, NULL, 0); char *machine = malloc(size); sysctlbyname("hw.machine", machine, &siz...
分类:其他好文   时间:2015-02-02 23:17:38    阅读次数:280
简单说说call 与apply
Function.call() 将函数作为对象的方法调用,例如:function.call(thisobj,args,........);thisobj 调用function的对象。在函数主体中,thisobj是关键字this的值。如果这个参数为null,就使用全局变量 args...任意多个参数,...
分类:移动开发   时间:2015-02-02 23:02:18    阅读次数:237
Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ...
分类:其他好文   时间:2015-02-02 22:49:40    阅读次数:203
链表排序
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode *g...
分类:编程语言   时间:2015-02-02 21:38:39    阅读次数:203
内存分配的四个例子
内存分配的四个例子 原文在是:有关内存的思考题 在这篇基础上扩展了些知识,以做记录。 第一个例子: char *GetMemory(char * p) { p = (char *)malloc(100); return p; } void Test(void) { char *str = NULL; GetMemory(str); st...
分类:其他好文   时间:2015-02-02 19:55:13    阅读次数:143
D2D引擎与GDI\GDI+绘制效果对比
本例主要是对比D2D和GDI在绘制文字、线条的区别,以及D2D与GDI+在绘制图片时的区别。 D2D是基于COM组件开发的,使用前的CoInitialize(NULL)是必须的;另外,GDI+的初始化GdiplusStartup()也别忘了。 废话少说,完整代码如下:// D2DDemo.cpp : 定义应用程序的入口点。 // #include "stdafx.h" #include "D...
分类:其他好文   时间:2015-02-02 19:54:49    阅读次数:302
计算程序运行时间
#include #include int main(void) { int sum = 0; time_t t,t1; time(&t); //t = time(NULL); std::cout<<ctime(&t); //单...
分类:其他好文   时间:2015-02-02 19:52:03    阅读次数:156
查询数据库所有(某个)表中字段名,数据类型,说明等
--查询数据库所有SELECT (case when a.colorder=1 then d.name else null end) 表名, a.colorder 字段序号,a.name 字段名, isnull(g.[value], ' ') AS [说明] FROM syscolumns a .....
分类:数据库   时间:2015-02-02 19:33:27    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!