码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
C++ String类
设计String类 //C++ 设计String类:构造函数,拷贝构造函数,析构函数,赋值函数 #include using namespace std; class String { public: String(const char *str=NULL); String(const String&another); ~String(); String&operator=(cons...
分类:编程语言   时间:2014-07-26 02:59:16    阅读次数:383
android 图文一起 textview SpannableString和ImageSpan类的使用
今天讲解一下SpannableString和ImageSpan类 Bitmap bitmap = null; bitmap = BitmapFactory.decodeResource(getResources(), imageIds[arg2 % imageIds.length]); ImageSpan imageSpan = new ImageSpan(NeighborCommunica...
分类:移动开发   时间:2014-07-26 02:45:56    阅读次数:230
NSNull的使用
集合中是不能存放nil值的,因为nil在集合中有特殊含义,但有时确实需要存储一个表示“什么都没有”的值,那么就可以使用NSNull,它也是NSObject的一个子类。 创建和获取NSNull的方法 + (NSNull *)null [NSNull null]总是返回一样的值,所以可以用==将该值与其...
分类:其他好文   时间:2014-07-26 01:44:56    阅读次数:176
windows 文件内存映射
static int MapLogFile(void){ hFile = CreateFile(".\\db.bin", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, ...
分类:Windows程序   时间:2014-07-26 00:25:46    阅读次数:307
struts下ajax提交与页面进行提示 返回值为null
@Override public String execute() throws Exception { if ("none".equals(task)) { HttpServletResponse response = ServletActionContext.getResponse();...
分类:其他好文   时间:2014-07-26 00:01:56    阅读次数:389
C# in Depth Third Edition 学习笔记-- 可空类型
1. 没有值怎么办? 客户下了一份订单,有订货日期,但尚未发货,但没有发货日期,怎么表述发货日期? C#2以后使用可空类型。2. 为什么值类型的变量不能是null? 引用类型变量,其值是一个引用,即一个非空引用值提供了访问一个对象 的途径,对于null来说,作为一个特殊值,意味着不引用任何对象。所....
分类:其他好文   时间:2014-07-25 16:33:41    阅读次数:183
jquery widget开发——核心框架
框架代码: $.widget( "myns.myplugin", { //默认参数 options: { clear: null }, //初始化,控件生命...
分类:Web程序   时间:2014-07-25 14:04:31    阅读次数:236
uva 548(二叉树)
题解:给出了二叉树的中序和后序,重建二叉树,输出路径和最短的叶子的值。 两个模板: 给出前序和中序建树: Node* build (int n, int* preo, int* ino) { Node* node = new Node; int i = 0; if (n <= 0) return NULL; while (ino[i] != p...
分类:其他好文   时间:2014-07-25 11:26:21    阅读次数:175
关于概率性事件的产品性能和客户体验讨论
事件回放:近期关于短信验证码出现的概率性事件,为处理db2序列返回概率大概在万份之一为null的解决方案。            方案一,为杜绝null的产生和数据库数据的完全性及用户体验的角度,允许设计万份之一为null的组合主健出现,但为必须要处理插入数据库后的过滤处理,确保数据的完整性。            方案二,为杜绝概率性nul出现,db2序列返回值和规则时间组合主键直接拦截,并...
分类:其他好文   时间:2014-07-25 11:20:21    阅读次数:200
社保系列2——文件系统
1.编写数组类,进行边界检查。 class MyCArray { protected: int m_size; int *m_PData; public: MyCArray(int size) { m_size=size; m_PData=new int[size]; } ~MyCArray() { if(m_PData!=NULL) { delete[]...
分类:其他好文   时间:2014-07-25 10:58:41    阅读次数:319
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!